Question: If a function component should always render the same way given the same props, what is a simple performance optimization available for it?

  1. Wrap it in the `React.memo` higher-order component.
  2. Implement the `useReducer` Hook.
  3. Implement the `useMemo` Hook.
  4. Implement the `shouldComponentUpdate` lifecycle method.

Answer: The correct answer of the above question is Option A:Wrap it in the `React.memo` higher-order component.