DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Discussion on: Should React opt for compile time instead of Virtual DOM?

Collapse
jakesarjeant profile image
Jake Sarjeant • Edited on

That is a great idea, but concidering how big a library react really is, it would require an incredible amount of work to re-write the very architecture of the framework. Also, a virtual DOM does have benefits. I think that the current system of only re-rendering the components that have changed is very good. It would probably take months to get that kind of system working as well again as it already does, without re-writing a huge chunk of the react source code.

Anyway, I do agree that it would be great if react could do without a virtual DOM! I'm not saying that you're suggestion isn't possible – it's just hard and laborious.

Collapse
sendy profile image
Sandeep Author

Thanks Jake for your valuable input :)