I use mobx to manage state in React. After decorating a class with observable decorator, the store object passed to the component through Provider is empty
import {observable} from "mobx"
class Store{
@observable a="test"
}
export default Store
import React from "react";
import ReactDOM from "react-dom";
import "./index.css";
import App from "./mobx/App";
import registerServiceWorker from "./registerServiceWorker";
import {Provider} from "mobx-react"
import Store from "./mobx/store"
let store =new Store()
ReactDOM.render(<Provider store={store}><App/></Provider>, document.getElementById("root"));
registerServiceWorker();
storestore
![][1]