Skip to content

Commit

Permalink
updated copy in motivation
Browse files Browse the repository at this point in the history
  • Loading branch information
jonbnewman committed Mar 7, 2020
1 parent 6237607 commit b1619f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/motivation.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ _Why was mobx-store-provider created?_

## What are the benefits?

The goal is to provide a simple API that allows you to use **mobx-state-tree** from within [React Function Components](https://www.robinwieruch.de/react-function-component) while also giving a couple additional features to help with application development and cover common use cases.

Compared to using the React Context API directly, using **mobx-store-provider** gives you:

- A clean, simple, and straight-forward hooks-based API.
Expand All @@ -54,8 +56,6 @@ This also gives it an extremely small footprint:

It uses React Context, wrapping a developer friendly hooks-based interface around it for use in functional components.

The goal is to provide a simple API that allows you to use **mobx-state-tree** from within [React Function Components](https://www.robinwieruch.de/react-function-component) while also giving a couple additional features to help with application development and cover common use cases (such as [multiple stores](/multiple-stores) and selectors via [mapStateToProps](/api/useStore#using-a-mapstatetoprops-callback)).

## Can't I just use React Context?

Yes, as an alternative you _can use_ the React Context API directly.
Expand Down

0 comments on commit b1619f3

Please sign in to comment.