Post

tried writing this blog 3 times but it’s really boring, so here’s the short version: React won. Every mainstream f/w now implements its ideas, and developed their own ecosystems. The ones that didn’t, lost and died. This implies there’s no _strong_ reason to not pick one of the other winners.

Without a compiler, and with the virtualized DOM paradigm, I don’t really know that react is in a great position to benefit from signals. Frameworks that use compilers and “templated“ DOM (including JSX usage) will always have an advantage using any reactive primitive for targeted updates

Put differently, if we react has to build an object tree, and then diff it against another object tree in order to know what to update, then targeted updates aren’t really on the table. And reactive types like signals really don’t have any direct advantage for react.

Love this. And true. I forget about the vdom limitations too easily. My last phrase still stands.

0 reposts8 likes

Admittedly the things I was looking for was: - Small (Preact's got) - No auto tracking (explicitness in library code) - Any side effects being "mountable" and unmountable (namely for React support) - Ability to diff new vs previous values so we can keep referencial stability between computations