Use React has been three years, in these three years inside also deposited a lot of best practices on React code optimization, today first write a ...
For further actions, you may consider blocking this person and/or reporting abuse
Very impressive demonstration about the stress you get using REACT. What precisely was the advantage of using REACT?
Flexible! Including its powerful ecosystem! and community!
I used PureComponent for every class component. Is it a bad practice ? 😟
Yes, that is a bad practice what you're doing is premature optimization, and that is the root of all evil.
PureComponent optimize the performance when you have a performe issue; using it without an issue will hinder the performance because every component has to call shouldComponentUpdate and that doesn't happen for free. And functional components are not the answer either, they're not that much different from class components.
Okay, thanks! Man need a fix
Agree
I'll be the judge of that
I use memo for all function components but I always provide the comparison condition.
Thank you for the informative article!
I have heard about useMemo and useCallback before, but I never really got around to using them in my projects. I guess I caused unnecessary rendering.
Thanks for the message! These two Hooks also can not be used too often Oh! And look at the situation flexible use!
just a little question... what about prevSrate?
reactjs.org/docs/hooks-reference.h...
Sorry I didn't get your point!