Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 778 Bytes

README.md

File metadata and controls

35 lines (24 loc) · 778 Bytes

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