npm.io
1.0.0 • Published 6 years ago

use-typing-hook

Licence
MIT
Version
1.0.0
Deps
0
Size
572 kB
Vulns
0
Weekly
0

use-typing-hook

Custom React Hook to help you create a typing text effect in you app.

NPM JavaScript Style Guide

Install

npm install --save use-typing-hook

Usage

import React, { Component } from 'react'

import useTyping from 'use-typing-hook'

const Example = () => {
  // useTyping accepts three parameter
  // 1. Text
  // 2. Minimum delay timing
  // 3. Maximum delay timing

  const typingText = useTyping("Hello useTyping!", 200, 400)
  return (
    <div>{typingText}</div>
  )
}

License

MIT nnnkit