You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[Official MobX 3 documentation and API overview](https://mobxjs.github.io/mobx/refguide/api.html) ([MobX 2](https://github.com/mobxjs/mobx/blob/7c9e7c86e0c6ead141bb0539d33143d0e1f576dd/docs/refguide/api.md))
32
32
* Videos:
@@ -60,7 +60,7 @@ MobX has only a few core concepts. The following snippets can be tried online us
MobX adds observable capabilities to existing data structures like objects, arrays and class instances.
66
66
This can simply be done by annotating your class properties with the [@observable](http://mobxjs.github.io/mobx/refguide/observable-decorator.html) decorator (ES.Next).
With MobX you can define values that will be derived automatically when relevant data is modified.
104
104
By using the [`@computed`](http://mobxjs.github.io/mobx/refguide/computed-decorator.html) decorator or by using getter / setter functions when using `(extend)Observable`.
@@ -117,14 +117,14 @@ Computations like these resemble formulas in spreadsheet programs like MS Excel.
Reactions are similar to a computed value, but instead of producing a new value, a reaction produces a side effect for things like printing to the console, making network requests, incrementally updating the React component tree to patch the DOM, etc.
123
123
In short, reactions bridge [reactive](https://en.wikipedia.org/wiki/Reactive_programming) and [imperative](https://en.wikipedia.org/wiki/Imperative_programming) programming.
If you are using React, you can turn your (stateless function) components into reactive components by simply adding the [`observer`](http://mobxjs.github.io/mobx/refguide/observer-component.html) function / decorator from the `mobx-react` package onto them.
130
130
@@ -188,7 +188,7 @@ For an in-depth explanation about how MobX determines to which observables needs
The `observer` function / decorator can be used to turn ReactJS components into reactive components.
6
6
It wraps the component's render function in `mobx.autorun` to make sure that any data that is used during the rendering of a component forces a re-rendering upon change.
@@ -93,7 +93,7 @@ For more advantages of using observable local component state, see [3 reasons wh
93
93
94
94
## Connect components to provided stores using `inject`
95
95
96
-
<astyle="color: white; background:green;padding:5px;margin:5px;border-radius:2px"href="https://egghead.io/lessons/react-connect-mobx-observer-components-to-the-store-with-the-react-provider">Egghead.io lesson 8: inject stores with Provider</a>
96
+
<astyle="color: white; background:green;padding:5px;margin:5px;border-radius:2px"href="https://egghead.io/lessons/react-connect-mobx-observer-components-to-the-store-with-the-react-provider">egghead.io lesson 8: inject stores with Provider</a>
97
97
98
98
The `mobx-react` package also provides the `Provider` component that can be used to pass down stores using React's context mechanism.
99
99
To connect to those stores, pass a list of store names to `inject`, which will make the stores available as props.
0 commit comments