UNPKG

@figliolia/react-hooks

Version:

A small collection of simple React Hooks you're probably rewriting on a regular basis

10 lines (9 loc) 312 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.useController = void 0; const react_1 = require("react"); const useController = (Controller) => { const controller = (0, react_1.useRef)(Controller); return controller.current; }; exports.useController = useController;