use-react-typing
v1.2.0
Published
Built to be used with `create-react-app`, `nextjs`, `gatsby`, or `react-static`.
Downloads
25
Readme
React hook to type your text with animation
Built to be used with create-react-app
, nextjs
, gatsby
, or react-static
.
import and how to use
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>
);
};
To add in your project, add this in terminal
npm i use-react-typing