score:3

React can be used with Immutable or plain Javascript data. And React does provide for a lifecycle hook(shouldComponentUpdate) which you can choose to use in order to prevent re-render. However for a plain Javascript data sometimes it can be an overhead to compare data and decide whether to re-render the data or not since it may so happen that in order to check for data change, you may need to deep compare the data and in cases where most often a re-render is needed, react has to make the DOM updates after a comparison state which may be more costly then simple Virtual DOM diffing and updating.

That being said, you can achieve a tradeoff between a quick decision of whether to re-render or not actually rendering using a PureComponent and/or ImmutableJS data.


Related Query

More Query from same tag