Can the useImperativeHandle hook be used to expose methods from class components?
The useImperativeHandle hook is specifically designed for functional components. However, class components have their own way to expose methods via refs, typically using React.forwardRef.