opp-hooks
v1.0.0-alpha.53
Published
Define hooks for OPP frameworks.
Downloads
589
Readme
opp-hooks
Define hooks for OPP frameworks.
Installation
Using npm:
$ npm install --save opp-hooks
Defninition
import { SyncHook, SyncWaterfallHook } from 'opp-tapable';
export const core = {
registerPlugin: new SyncWaterfallHook(['plugin']),
};
export const vue = {
usePlugin: new SyncWaterfallHook(['pluginHooks']),
afterCreateApp: new SyncHook(['app']),
};
export const react = {
usePlugin: new SyncWaterfallHook(['pluginHooks']),
afterCreateRoot: new SyncHook(['root']),
};