Computed values are automatically derived from your state if any value that affects them changes . Computed values can be optimized away in many cases by MobX as they are assumed to be pure. For example, a computed property won’t re-run if none of the data used in the previous computation changed.
Read moreWhat is a MobX action?
An action is any piece of code that modifies the state . In principle, actions always happen in response to an event. For example, a button was clicked, some input changed, a websocket message arrived, etc. MobX requires that you declare your actions, although makeAutoObservable can automate much of this job.
Read more