Q8. How can you optimize the performance of a React application?
Performance optimization techniques in React include minimizing unnecessary re-renders using shouldComponentUpdate or React.memo, using React's memoization techniques like useMemo and useCallback, lazy loading components using React.lazy, and code splitting using dynamic imports.