It writes className as classname
Chibuife opened this issue · 2 comments
Chibuife commented
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
mattboldt commented
since the html in the strings aren't jsx, they're inserted as plain html, you'll need to use class instead.
Chibuife commented
Thanks a lot for your help
…On Sun, 26 Mar 2023, 3:30 am Matt Boldt, ***@***.***> wrote:
since the html in the strings aren't jsx, they're inserted as plain html,
you'll need to use class instead.
—
Reply to this email directly, view it on GitHub
<#540 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZDIKGL3PBQ3FP2TYMHZ4IDW56S3JANCNFSM6AAAAAAWHQFBW4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>