Libraries
Then the React Hooks came to the light. The was made to support this brave new world. It was great for several enthusiasts, but newcomers did (and still do) suffer.
Use mobx-react-lite for fresh new project on React Hooks. For any older project continue reading.
🤷♂️ Your code has class components while Hooks (React 16.8+) are out of reach?
👌 Just stay with , no worries.
🤷♂️ Class components still do exists in your code, but you can (and want) to use Hooks as well?
🤷♂️ No class components in your code?
👌 Use the directly as a smaller and faster variant.
What version of mobx?
There are currently two maintained versions of mobx
, the V4 (LTS) and V5. You can use either of those with any library mentioned above. The major difference is if you need to support IE11 which lacks ES6 Proxy support (MobX V5 depends on them).