3 ms·
I am... more and more disliking React for making me have to think about performance as much. I don't want to have to wrap click handlers in useCallback() or use
by Cthulhu_ 5y ago
I am... more and more disliking React for making me have to think about performance as much. I don't want to have to wrap click handlers in useCallback() or useEvent(). I don't want to have to wrap components in react.Memo. It feels like that's a lot of extra boilerplate and mental overhead that I think the framework should manage for me.
- terandle 5y agoThey are working on a compiler (React Forget) that will automate all of the memoization stuff for you. So at some point down the road I expect we'll be able take our current components and just delete all of the useCallback/useMemo code.