1.0.0 • Published 4 years ago
@fe.whnhouse/use-typewriter v1.0.0
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>
}
1.0.0
4 years ago