Loading...
Use a ReactiveController.
import { useController } from "@atomico/hooks/use-controller";
class AController {/*...*/} const useA = x => useController(host => new AController(host, x)); const { a } = useA('a');
Where:
AController: ReactiveController, A ReactiveController with property a.
AController
ReactiveController
a