use-typing-hook
v1.0.0
Published
A package to help you make the typing effect easily.
Downloads
2
Readme
use-typing-hook
Custom React Hook to help you create a typing text effect in you app.
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