forked from mobxjs/mobx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
25 lines (21 loc) · 763 Bytes
/
index.ts
File metadata and controls
25 lines (21 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { observable } from "mobx"
import { Component } from "react"
if (!Component) throw new Error("mobx-react requires React to be available")
if (!observable) throw new Error("mobx-react requires mobx to be available")
export {
Observer,
useObserver,
useAsObservableSource,
useLocalStore,
isUsingStaticRendering,
useStaticRendering,
enableStaticRendering,
observerBatching,
useLocalObservable
} from "mobx-react-lite"
export { observer } from "./observer"
export { MobXProviderContext, Provider, ProviderProps } from "./Provider"
export { inject } from "./inject"
export { disposeOnUnmount } from "./disposeOnUnmount"
export { PropTypes } from "./propTypes"
export { IWrappedComponent } from "./types/IWrappedComponent"