4 ms·
I usually explicitly tell devs to not worry about React internals. Let React decide when to re-render or how to batch state updates. React's API is small, devel
by ng12 6y ago
I usually explicitly tell devs to not worry about React internals. Let React decide when to re-render or how to batch state updates. React's API is small, developer time is better spent understanding the API than wondering how React works under the hood.
That said it's still a mental shift. Sometimes I feel like I'm writing React and not writing JavaScript.