In MobX, which decorator is used to mark a property as observable?

  • @component
  • @observable
  • @state
  • @watch
In MobX, the @observable decorator is used to mark a property as observable. When a property is marked as observable, MobX can track changes to it and automatically update any components that depend on it when it changes. This is a key feature for reactive state management in MobX.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *