In this article, we discussed that using props or context as initial state and 'Destroy and Recreate' are anti-patterns while using internal state in JSX and props as a dependency in useMemo are good patterns. We also learned that we should be cautious when we are using hooks without a dependency array and nesting for arranging React components.
People Mentioned
Companies Mentioned
Coin Mentioned
Darshita Chaturvedi
@darshitac
Co-Founder & CEO, Atri Labs — Creating a new full-stack web development framework. Prev: MIT, IIT, BlackRock