3 ms·
There's already so much magic going on in React's code base. For Fiber, they put the stack in the heap so they could go around the JavaScript call stack and sch
by engineeringwoke 8y ago
There's already so much magic going on in React's code base. For Fiber, they put the stack in the heap so they could go around the JavaScript call stack and schedule work as they see fit
The real magic is in traversal APIs, like Context
- Vinnl 8y agoOh absolutely - by now I have read through the docs, and as I mentioned at [1] as well, I'm even expecting hooks to do away with more magic than it introduces. That said, my main point was that "it's only magic for end users" is not really a valid excuse :) [1] https://twitter.com/VincentTunru/status/1055747566393085952 https://twitter.com/VincentTunru/status/1055747566393085952
- engineeringwoke 8y agoAgreed, it's not really a valid excuse. Hopefully a scheduler re-write comes along soon to alleviate those concerns. I absolutely share them; I can't read any of that code anymore