observable
Estimated reading time: 1 minutewhat is observable
observable
is a kind of variable . mobx environment your all data binding with observable.
// store/Index.js
import {observable} from 'mobx'
class MyComponent{
@observable name = "Mr. Kamal"
@observable title = "web developer"
@observable age
}
export default window.__STATE = new MyComponent(window.__STATE)
Access observable
<h1>{this.props.store.name}</h1>