Skip to content

Commit 53bf33c

Browse files
Add observation plugins as option for React bindings (#4541)
As suggested by @mweststrate : #4537 (comment)
1 parent 9019966 commit 53bf33c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/installation.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ hide_title: true
1010

1111
MobX works in any ES5 environment, which includes browsers and NodeJS.
1212

13-
There are two types of React bindings, `mobx-react-lite` supports only functional components, whereas `mobx-react` also supports class based components. Append the appropriate bindings for your use case to the _Yarn_ or _NPM_ command below:
13+
There are three types of React bindings:
14+
- [mobx-react-lite](https://github.com/mobxjs/mobx/tree/main/packages/mobx-react-lite). Utilities to manually apply observation
15+
- [mobx-react-observer](https://github.com/christianalfoni/mobx-react-observer). Babel/swc plugin to automatically apply observation to components
16+
- [mobx-react](https://github.com/mobxjs/mobx/tree/main/packages/mobx-react). Support for class components
17+
18+
Append the appropriate bindings for your use case to the _Yarn_ or _NPM_ command below:
1419

1520
**Yarn:** `yarn add mobx`
1621

0 commit comments

Comments
 (0)