Home > Software engineering >  Why does Textify.js only work in HTML and not in React?
Why does Textify.js only work in HTML and not in React?

Time:09-28

I am trying to add Textify.js to a site. But something is not working correctly. I only see animation when I change my code. But if I try to reload, change page (react-router) etc ... nothing happens.

I have tried with HTML and everything works fine.

I'm not very good with Js / React ...

Thanks.

import Textify from "textify.js";

new Textify();

export function Home() {
  return (
<Container>

  <p data-textify>
    Some cool text.           
  • Related