Why you should avoid using state for computed properties
Understand why creating state variables for properties that can be computed is a bad idea, and how you can handle some edge cases when you need to derive your state from props.
Understand why creating state variables for properties that can be computed is a bad idea, and how you can handle some edge cases when you need to derive your state from props.
Explore why using object spread with .reduce() can sometimes significantly affect the performance of your JavaScript apps and libraries.
Explore why premature optimization can be bad in React and when should you actually use the memoization methods provided by React
Check out how you can write more efficient, maintainable and clean React code with these simple tips.