React.memo
React.memo is a higher-order component that memoizes a component to prevent unnecessary re-renders.
Snippet:
const MemoizedComponent = React.memo(MyComponent);
Example:
const MemoizedButton = React.memo(({ label }) => <button>{label}</button>);