npm.io
0.1.0 • Published 6 years ago

@taystack/use-typed-text

Licence
MIT
Version
0.1.0
Deps
0
Size
822 kB
Vulns
0
Weekly
0
Stars
1

@taystack/use-typed-text

React 16.8 hook to make it look like someone is typing

UseTypedTextNPM JavaScript Style Guide

Install

npm install --save @taystack/use-typed-text

Usage

import React from "react"

import { useTypedText } from "@taystack/use-typed-text"

const Example = () => {
  const [text, setText] = useTypedText();

  useEffect(() => {
    setText("hello world");
  }, []);

  return (<div>{text}</div>);
}

License

MIT taystack


This hook is created using create-react-hook.