Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 442 Bytes

use-controller.md

File metadata and controls

25 lines (16 loc) · 442 Bytes
description
Use a ReactiveController.

use-controller

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: