绑定 React 与 Mobx Mobx-React
- 授权协议: MIT
- 开发语言: JavaScript TypeScript
- 操作系统: 跨平台
- 软件首页: https://github.com/mobxjs/mobx-react
- 软件文档: https://github.com/mobxjs/mobx-react/blob/master/README.md
- 官方下载: https://github.com/mobxjs/mobx-react/archive/master.zip
软件介绍
为了将React与Mobx结合起来的一个React组件包,export出一个observer声明和一些开发的工具。这个组件包支持React和React-Native。
安装使用:
npm install mobx-react --save
或者使用cdn:https://unpkg.com/mobx-react (namespace: mobxReact)
import {observer} from 'mobx-react'; // - or - import {observer} from 'mobx-react/native'; // - or, for custom renderers without DOM: - import {observer} from 'mobx-react/custom';
这个组件提供了为React和Mobx的绑定,详细请参阅官方文档。