(Choose 1 answer)
How can you optimze performance for a function component that always renders the same way?
A. Use the shouldComponentUpdate lifecycle method.
B. Use the useMemo Hook.
C. Use the useReducer Hook.
D. Wrap it in the React.memo higher-order component.
Exit 13