React compiling down to raw application code #50
Description
Ahead of Time compiling is becoming a thing in the ever evolving Javascript world. At the end of the day, web frameworks simply have to change (virtual) DOM nodes at the appropriate time. Framework specific logic, like change detection, re-rendering and diffing, etc, are simply ways of letting developers be able to reason about when they expect a change to occur in the DOM.
If a compile step can intimately understand all the code paths a certain application can take, web applications don't have to incur the overhead of implementing the entire framework logic.
Angular is doing it in a limited way and a recent library svelte is requiring AOT compilation.
I'm not sure if this is the right location for this discussion, but I think this is something that the React community seriously needs to begin considering.