Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?



I 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.


Took a look - after the pain of React memoization, that's a super exciting development.

Thanks for the pointer!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: