|
|
|
|
|
by schwartzworld
404 days ago
|
|
React can be very performant with little optimization if you apply FP principals to it, which makes sense since it was built with the goal of using FP to do frontend work. If your whole tree is recalculating on every mousemove event, that is a giant code smell to say the least. You’d have to architect the app to work that way. |
|
> If your whole tree is recalculating on every mousemove event
If you update a variable in the root component, that will happen. Am I wrong?