UNPKG

780 BPlain TextView Raw
1import { observable } from "mobx"
2import { Component } from "react"
3
4if (!Component) {
5 throw new Error("mobx-react requires React to be available")
6}
7
8if (!observable) {
9 throw new Error("mobx-react requires mobx to be available")
10}
11
12export {
13 Observer,
14 useObserver,
15 useAsObservableSource,
16 useLocalStore,
17 isUsingStaticRendering,
18 useStaticRendering,
19 enableStaticRendering,
20 observerBatching,
21 useLocalObservable
22} from "mobx-react-lite"
23
24export { observer } from "./observer"
25
26export { MobXProviderContext, Provider, ProviderProps } from "./Provider"
27export { inject } from "./inject"
28export { disposeOnUnmount } from "./disposeOnUnmount"
29export { PropTypes } from "./propTypes"
30export { IWrappedComponent } from "./types/IWrappedComponent"