I am building a Nextjs site and am using the react-typist library
I want the text that I write with the typist library to run on an infinite loop. Here is what my component looks like at the moment.
import Typist from 'react-typist'
const Typer = () => {
  return (
    <Typist
      className="flex justify-center mt-10 text-2xl h-10"
      cursor={{
        show: false
      }}
    >
      <Typist.Delay ms={1000} />
      <div>Some text</div>
      <Typist.Backspace count={20} delay={200} />
      <Typist.Delay ms={1000} />
      <div>Some more text</div>
      <Typist.Backspace count={13} delay={200} />
      <Typist.Delay ms={1000} />
      <div>Even More Text</div>
      <Typist.Backspace count={18} delay={200} />
      <Typist.Delay ms={1000} />
      <div>Last bit of text</div>
    </Typist>
  )
}
export default Typer
and here is my main index.js file where I am importing the component.
import Head from '../components/head'
import Nav from '../components/nav'
import Typer from '../components/Typer'
import '../styles/main.css'
const Index = () => {
  return (
    <div>
      <Head title="Learn Nextjs" />
      <Nav />
      <Typer />
    </div>
  )
}
export default Index
I tried wrapping it in a for loop but that didn't seem to work. Should I remount the component over and over again, if so how should I go about doing that? Let me know if you need any other info from me to help figure this out. Thanks in advance.
 
     
    