Introduction

mobx-store-provider is a library that provides React Hooks to setup and access mobx-state-tree models from within React Function Components.

Its goal is to provide a straight-forward, minimalist, and terse API that allows you to easily incorporate mobx-state-tree into functional React components.

Install it with NPM or Yarn:

npm i mobx-store-provider
yarn add mobx-store-provider

Get started: Basic example


  1. Basic example
  2. API details and examples
  3. Multiple stores
  4. Local state
  5. Typescript
  6. Testing
  7. Motivation
  8. Upgrading 1.x -> 2.x

CircleCI Coverage Status

NPM Package Typescript Package size

MIT License