I'm using Typed.js and It's not working working properly.
Typed.js showing double cursor and glitching the string array
It is difficult to figure out why causing this problem fact that I don't see anything wrong.
You can see the code
import React from "react";
import Typed from "typed.js";
class SkillsList extends React.Component{
componentDidMount(){
new Typed('#skills', {
strings: ['Front End Developer','Full Stack Developer', 'Chrome Extension Developer', 'Web Scraping and Automation', 'PHP Developer', 'Python Developer'],
typeSpeed: 75,
loop: true
});
}
render(){
return (
<span id="skills"/>
);
}
}
export default SkillsList;
I've tried to search this issue But I can't find any thing that can help me
Your code is causing unnecessary re-renders, you should use ref to avoid it. Here you can see an react class component example using typed.js library (JSFiddle).