UNPKG

hta

Version:

The tiny framework for building Hyper Text Application with ease

22 lines (20 loc) 482 B
import { HOOKS } from "../core/types"; import createHookManager from "./createHookManager"; export default function hookExtras() { return { component: { init({ instance }) { instance[HOOKS] = createHookManager(); }, updating(args) { args.instance[HOOKS].updating(args); }, updated({ instance }) { instance[HOOKS].updated(); }, unmount({ instance }) { instance[HOOKS].unmount(); }, }, }; }