Should React opt for compile time instead of Virtual DOM?
Sandeep
Posted on October 11, 2020
I am front-end developer who loves working with React. I am really impressed with Svelte's approach for reactivity and I just wanted community's input on my thoughts.
React drastically changed the way we develop frontend apps, but Svelte definitely redefined reactivity with it's approach to compile time optimizations vs Virtual DOM.
Why
Everyone talks about switching from one framework to another but if React could ditch Virtual DOM, and start adopting compile time optimizations, that would be best of both worlds.
React is already very much mature, has lots of tooling available and lots of community support. Developers will be able to continue using the existing tools with much more improved React.
How
I am just putting my thoughts here. There are lots frameworks which are using React internally like Next JS, Gatsby etc. All the frameworks and tools will definitely be affected as well if React changes it's underlaying architecture.
But may be React can do an opt-in phase like how it did during React 16. This will allow a slow transition into a new React.
What are your thoughts?
Let me know what you guys think about this. Is it possible? or is it unnecessary?
Posted on October 11, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.