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