I DID NOT GET THE DESIRED OUTPUT when I used react-simple-typewriter codes from this Link to my code. It works for only the first word of the word list. But I want that it will continuously run. When I reload it will show the next word from the list. I used to change the only "loop", "loop={0}". But nothing does not work for me. Here is the code sample:
const HeaderHero = () => {
return (
<>
<section className="hero" id="home">
<div className="container f_flex top">
<div className="left top">
<h3>Welcome to my world...</h3>
<h1>
Hi, I'm <span>Samrat Alam</span>
</h1>
<h2>
a
<span>
<Typewriter
words={[
" Developer.",
" Learner.",
" Coder.",
" Self Believer.",
]}
loop={0}
cursor
cursorStyle="|"
typeSpeed={70}
deleteSpeed={50}
delaySpeed={1000}
/>
</span>
</h2>
<div className="hero_btn d_flex">
<div className="col_1">
<h4>Find With ME</h4>
<button className="btn_shadow">
<i className="fab fa-facebook"></i>
</button>
<button className="btn_shadow">
<i className="fab fa-linkedin-in"></i>
</button>
<button className="btn_shadow">
<i className="fab fa-instagram"></i>
</button>
</div>
</div>
</div>
</div>
</section>
</>
);
};
export default HeaderHero;
Here is the output result:
