@fe.whnhouse/use-typewriter
v1.0.0
Published
A React Hook to write text delayed on render, like a typewriter.
Downloads
1
Readme
use-typewriter
This package provides a simple React Hook to delay the print of a given string by a given time (ms).
API
useTypewriter({title: string, speed?: number}): string
Usage
const App = () => {
const title = useTypewriter({title: 'Test Title', speed: 60})
return <h1>{title}</h1>
}