mobx-react-lite
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -1,3 +0,3 @@ | ||
import { FunctionComponent } from 'react'; | ||
import { FunctionComponent } from "react"; | ||
export declare function useStaticRendering(enable: boolean): void; | ||
export declare function observer<P>(baseComponent: FunctionComponent<P>): FunctionComponent<P>; |
{ | ||
"name": "mobx-react-lite", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Lightweight React bindings for MobX based on experimental React hooks", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -10,6 +10,6 @@ # mobx-react-lite | ||
[![NPM](https://nodei.co/npm/mobx-react-lite.png)](https://www.npmjs.com/package/mobx-react-lite) | ||
The more detailed documentation will be coming later. For now you can just use `observer` & `Observer` same way as before. There is no `Provider/inject` anymore as these can be handled by `React.createContext` without extra hassle. There might be bugs, as tests are not covering all scenarios just yet. No devtools & SSR support. | ||
Note that class based components are not supported except using `<Observer>` directly in its `render` method. | ||
Package is not published to NPM just yet. If you are impatient, refer to the comment on [how to try it in your project](https://github.com/mobxjs/mobx-react/issues/588#issuecomment-435571367). |
267129
28
628