I'm trying to use typedjs in react to emulate the typing effect. I have 3 strings in the string array and as far as i know, after each string is typed, it should get deleted and the next string should be typed. But i'm unable to do so.
Is my understanding correct or do i have to implement additional internal functions like onStringTyped given in the documentation?
Here is my code for the TypeIt react component.
<TypeIt
options={{
strings: ["string0", "string1", "string2"],
waitUntilVisible: true,
loop: true,
lifeLike: true,
cursorChar: "_",
smartBackspace: true,
}}
></TypeIt>
I found a way to fix this issue, and it turns out that the strings are typed one after another (stacked) and deleted at once.