mattboldt/typed.js

It writes className as classname

Chibuife opened this issue · 2 comments

const el = useRef(null);

useEffect(() => {
const typed = new Typed(el.current, {
strings: ['Welcome to my Portifolio', I develop user interfaces <br className='sm: block hidden' /> and web applications with React. I use FireBase to develop my back-ends. I am currently learning express js.<br className='sm: block hidden' /> Am ready to migrate to any framework for development.Looking some some who can build and provide solution for your client site? <a href='#contact' className='mt-5'>DROP A MESSAGE</a>],
typeSpeed: 50,
});

return () => {
  // Destroy Typed instance during cleanup to stop animation
  typed.destroy();
};

}, []);

        <span ref={el} />

it skipped my classes

since the html in the strings aren't jsx, they're inserted as plain html, you'll need to use class instead.