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:

Last updated