Closed cizz3007 closed 4 years ago
if you use Date.now() or combine anything with Date.now() at key={} attribute. every component will re-rendered on every update. it's shit. every trigger that you are doing is cause re-rendering component
Originally posted by @cizz3007 in https://github.com/hyperfuse/react-anime/issues/43#issuecomment-549718279
That's actually a behavior of react. If the key prop changes between updates than a component will re render.
key
if you use Date.now() or combine anything with Date.now() at key={} attribute. every component will re-rendered on every update. it's shit. every trigger that you are doing is cause re-rendering component
Originally posted by @cizz3007 in https://github.com/hyperfuse/react-anime/issues/43#issuecomment-549718279