Lin Clark, who works for Mozilla, gave a talk on "What WebAssembly Means for React" last year ( https://www.youtube.com/watch?v=3GHJ4cbxsVQ ). In a recent Twitter thread, she said that some more useful WASM pieces are in the works, but still not likely to be a big improvement or worth the effort to rewrite React ( https://twitter.com/linclark/status/967860936550879232 ).
Then it could compile directly to native.
Is that in (very, very, long-term) consideration?
Great talk ! My thinking behind the top statement was with a native implementation of react-core, the react-native story becomes more compelling with JSX(ish) UI templates / CSS Styles and multi language business logic support.
Once you have this, the browser becomes another target. I see Flexbox implementation is already native with Yoga [0].
Currently:
Application(JS) + React(JS) | Browser(C/C++/Rust)
Possible Future: Application(JS) + React(Polyfill - JS) | React(C/C++/Rust) + Browser(C/C++/Rust)
Something akin to the Browser building a "higher level" React-like API/scheduler for the DOM.
I can see that being compiled to webassembly for browsers and react-native can have multiple language support ?