@barguide/react-hooks
Version:
TypeScript | React Hooks
9 lines (8 loc) • 356 B
TypeScript
/**
* @name useCheckoutLoader
* @description We use the "effect" hook to add/remove an "emitter" instance
* to our Modal component. By passing the "setter" from our React State we
* can get a live subscription to the state state
*/
declare const useEmitter: (event: string, callback?: any, initialValue?: any) => any[];
export { useEmitter };