2 ms·
ReactDom is the actual culprit. Preact [1] is a great ~4kb alternative, though it's still on the v15 API. React makes sense for something like Facebook/Instagr
by tomnipotent 8y ago
ReactDom is the actual culprit. Preact [1] is a great ~4kb alternative, though it's still on the v15 API.
React makes sense for something like Facebook/Instagram web where users interact with the app hundreds of times in a single session, but we can't fall into the trap of treating it like jQuery and hitting every nail we come across with it.
I'm hopeful that like jQuery, whatever features that make ReactDom et al. so large will eventually make their way upstream and be codified as browser specs.
[1] https://github.com/developit/preact https://github.com/developit/preact
- yebyen 8y agoI've heard of preact! Thanks for reminding me of this