JSPM

  • Created
  • Published
  • Downloads 2411149
  • Score
    100M100P100Q197212F
  • License MIT

Lightweight React bindings for MobX based on experimental React hooks

Package Exports

  • mobx-react-lite

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mobx-react-lite) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

mobx-react-lite

Build Status Join the chat at https://gitter.im/mobxjs/mobx

This is a next iteration of mobx-react coming from introducing React hooks which simplifies a lot of internal workings of this package.

You need React version 16.7.0-alpha.0 which is highly experimental and not recommended for a production.

NPM

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.