UNPKG

mobx-react-lite

Version:

Lightweight React bindings for MobX based on React 16.8 and Hooks

6 lines (5 loc) 255 B
export declare type ForceUpdateHook = () => () => void; export interface IUseObserverOptions { useForceUpdate?: ForceUpdateHook; } export declare function useObserver<T>(fn: () => T, baseComponentName?: string, options?: IUseObserverOptions): T;