1.0.0 • Published 4 years ago

@fe.whnhouse/use-typewriter v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

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>
}