Function useMethods

Returns an instance of the provided class, with the state and props arguments added as instance members.

state should be an instance of CleanState created with useCleanState.