react-typical
react-typical copied to clipboard
Really fast effect after scroll up/down
Same effect x100 on a one page
I have the same trouble. Can someone help me?
I fixed it ! I made my own lib ^^
Same here, if I use onScroll and setState
As long as you do not setState in a parent or in the same component it seems to work
@lps83 Can you share it? :D
I solved this problem by using React.memo, here is a sample code if anyone need
const TypingAnimation = React.memo(()=>{
return <Typical
loop={Infinity}
wrapper="p"
steps={
[
'Hello',
1200,
'World',
1200,
]
}
/>
},(props,prevProp)=> true ); // this line prevent re rendering
Thanks @whoami-shubham it made the trick!