You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to use this library without converting all of my react classes to functional components. Hooks must be called from React function components, or from custom hooks.
So it would be nice to be able to use the HOC way:
function withCollapse(Component) {
return function WrappedComponent(props) {
const collapseProps = useCollapse({});
return <Component {...props} {...collapseProps} />;
}
}
The text was updated successfully, but these errors were encountered:
I'd like to use this library without converting all of my react classes to functional components. Hooks must be called from React function components, or from custom hooks.
So it would be nice to be able to use the HOC way:
The text was updated successfully, but these errors were encountered: