3 ms·
It depends what you mean by "faster". In some cases you'll be better off with something lighter and accessing the DOM directly. If you need to do something at
by gpmcadam 8y ago
It depends what you mean by "faster". In some cases you'll be better off with something lighter and accessing the DOM directly.
If you need to do something at scale, then you may choose React. The benefit here isn't from just something as simple as changing the items in a list or the text in a header, but when you need to have large amounts of state in an app that is represented by a complex DOM tree.
The benefits of React here are that the virtual DOM can prevent unnecessary updates to the rest of the tree when your state change should only affect a nested element, for example.
- xtagon 8y agoThat makes sense. Thanks for explaining :-)