3 ms·
>React will simply re-render everything all the time which is the same as calling `App.render()` after every data change. My understanding is that react will c
by jjeaff 6y ago
>React will simply re-render everything all the time which is the same as calling `App.render()` after every data change.
My understanding is that react will calculate the diff of your changes and what is already rendered and then only render the difference.
- ricardobeat 6y agoIt will diff the virtual dom, but you'll still be running the `render()` method again for every component. That is, unless you replace it with a PureComponent that does shallow diffing, write your own `shouldComponentUpdate` (if still using classes), or use something like Redux that will actually manage updates outside of React's component lifecycle and take advantage of immutable data structures.