Answer the question
In order to leave comments, you need to log in
How to pass data through MobX to component's children?
I started to study MobX on this resource, the question arose.
In the example, data is entered into MobX as follows
const appState = observable({
count: 0
})
appState.increment = function () {
this.count++;
}
appState.decrement = function () {
this.count--;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question