mobx-react-lite
Version:
Lightweight React bindings for MobX based on React 16.8+ and Hooks
18 lines (17 loc) • 701 B
TypeScript
/// <reference types="react" />
interface IObserverProps {
children?(): React.ReactElement | null;
render?(): React.ReactElement | null;
}
declare function ObserverComponent({ children, render }: IObserverProps): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
declare namespace ObserverComponent {
var propTypes: {
children: typeof ObserverPropsCheck;
render: typeof ObserverPropsCheck;
};
var displayName: string;
}
export { ObserverComponent as Observer };
declare function ObserverPropsCheck(props: {
[k: string]: any;
}, key: string, componentName: string, location: any, propFullName: string): Error | null;