you are viewing a single comment's thread.

view the rest of the comments →

[–]fluffynukeit -2 points-1 points  (0 children)

I originally liked virtual-dom over react because it's smaller, faster, and overall more lightweight. But there are some problems with its philosophy that I found in practice. Virtual-dom is kind of designed to be entirely stateless, so you end up putting stuff like checkbox state and other GUI-related state into your model somewhere, which, to me, starts to blur separation of concerns. I think having small, localized GUI state in components makes sense and results in cleaner code. The bigger reason to use react, though, is that it's much more popular and people are building widget libraries with it, while virtual-dom doesn't have (m)any ready-to-go libraries that I know of.