Reactjs Performance Tuning using reselect

React uses Redux to keep all the states, and the object in redux are immutable. This is great feature, but sometime causes Repeatable Computation.

Think in the cases where nothing changes or some state changes but not related to the particular screen, we want to prevent this screen from re-rendering.

Some developer might think that you could save those temporary state in Redux as well, but temporary state has limited scope and it is not a good idea to save in global state, plus it could ruin our domain model in state. One suggested…