Re:React Docs Beta – rewritten with hooks and interactive ex...
by catlifeonmars on Monday October 25, 2021 @11:07AM
(#28988643)
This one is interesting, because React has a separation between the renderer and the library. There is a different renderer for e.g. react native, or even for the terminal (!!). It’s a little ambiguous where memoization falls (does it belong to the renderer, or to the core?). I totally agree that being able to switch on behavior for an entire tree or subtree would be ideal, but react tends to use components for that as well (e.g. <React.StrictMode>). Perhaps this should be a component, it could even be implemented via the context system.
[ Parent
| on HN ]
There are no comments on this comment yet.