use-controller
Use a ReactiveController.
Modulo
import { useController } from "@atomico/hooks/use-controller";Syntax
class AController {/*...*/}
const useA = x => useController(host => new AController(host, x));
const { a } = useA('a');Where:
AController:ReactiveController, A ReactiveController with propertya.
Last updated
Was this helpful?
