1 min readApr 25, 2017
It depends on the situation, but in almost all of the components you have to keep them as much stateless as you can. You can easily keep components stateless and avoid unneeded renders with shouldComponentUpdate.
It depends on the situation, but in almost all of the components you have to keep them as much stateless as you can. You can easily keep components stateless and avoid unneeded renders with shouldComponentUpdate.