1.0.0 • Published 4 years ago

use-typing-hook v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

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