Re:Common mistakes writing React components with hooks
by city41 on Tuesday July 21, 2020 @10:22AM
(#23906990)
To add to this, the React docs state you should never rely on renders for side effects. In dev mode, React will even render your components twice to suss out any render relying side effect bugs. Your component should always work the same whether it's rendered once or rendered a million times.
[ Parent
| on HN ]
There are no comments on this comment yet.