Re:React is becoming a black box
by ng12 on Thursday September 03, 2020 @01:59PM
(#24366729)
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.
That said it's still a mental shift. Sometimes I feel like I'm writing React and not writing JavaScript.