How do you compute in MobX?

Computed values can be created by annotating JavaScript getters with computed . Use makeObservable to declare a getter as computed. If you instead want all getters to be automatically declared as computed , you can use either makeAutoObservable , observable or extendObservable .

Read more

What is MobX reaction?

Reactions are an important concept to understand, as it is where everything in MobX comes together. The goal of reactions is to model side effects that happen automatically . Their significance is in creating consumers for your observable state and automatically running side effects whenever something relevant changes.

Read more