I created a react project using redux as state management. I have two different states stored in the same reducer and used by two different components. But every time I change the state in one component, the other component also re-rendered. How to prevent this rendering behavior?
You can try my sandbox here: https://pjm8e.csb.app/
I put some console.log
inside each component, and both are rendered when the button clicked