UNPKG

@barguide/react-hooks

Version:
9 lines (8 loc) 356 B
/** * @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 };