Built to be used with create-react-app
, nextjs
, gatsby
, or react-static
.
import {useTyping} from "use-react-typing";
export default Home = () => {
const [text, setText] = useTyping({ delay: 50, late: 1000, locale: "en"});
setText("Welcome to our restarant ✌.");
return (
<div>
{text}
</div>
);
};
npm i use-react-typing