3 ms·
I'm the author of CxJS[1] which uses React for rendering. Before rendering, the whole tree is scanned for data changes and with that information available shou
by mstijak 9y ago
I'm the author of CxJS[1] which uses React for rendering. Before rendering, the whole tree is scanned for data changes and with that information available shouldComponentUpdate is very simple.
Another technique that I find very useful is to use a dedicated data declaration component which then decides if children should update or not. Try grid sorting on this page:
https://worldoscope.cxjs.io/yyrsmjk https://worldoscope.cxjs.io/yyrsmjk
[1]: https://cxjs.io https://cxjs.io