Attempted import error: ‘mobx-react‘ does not contain a default export (imported as ‘observer‘).

We introduced this one here in the React

import observer from "mobx-react"
@observer

The following error is then reported:
Mobx-react ‘does not contain a default export (imported as’ observer’).
Let me put curly braces, and I’ll do it like this

 import {observer from} "mobx-react"
@observer

You won’t get an error

Read More: