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 .

Sizin İçin Seçtik  What is MobX reaction?

Leave a Reply

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