3 ms·
This website covers a fair bit of React - in particular, it seems Web Components can be used to create components with both state & props. One can imagine a cr
by cadamsdotcom 1y ago
This website covers a fair bit of React - in particular, it seems Web Components can be used to create components with both state & props.
One can imagine a cross-compiler so you could write React, but have it compiled to React-free javascript - leaving no React dependency in production.
Would be a lift, but looks superficially possible.
What are the blockers to this?
- cube00 1y agoI suspect that's where the new React Compiler will eventually head where based on your code it will try and remove as much React runtime as possible if it's not needed.
- cadamsdotcom 1y agoTook a look - after the pain of React memoization, that's a super exciting development. Thanks for the pointer!