- If you directly mutate state it will be very difficult to debug and test the state change.
- Keeping your state minimal is the best React practice.
- Making state of your component immutable will make your code simple to understand, as the state changes are more explicit and easy to test.
Read the full article, click here.
@nalwayaabhishek: “#Reactjs and #Redux best practices @reactjs”
React and Redux best practices