Skip to content

nnnkit/use-typing-hook

Repository files navigation

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

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published