Function useLogic

Returns an instance of the provided class, which holds methods for your component and encapsulates hook calls with the special ComponentLogic.useHooks | useHooks method.

The class argument must be a subclass of ComponentLogic.