How the state managment works
setExampleProperty
) are methods used to modify the state.get exampleProperty
) are getters that return a processed version of the state.exampleMethod
) can be asynchronous and can perform side effects.App.tsx
) and passed through the context to the rest of the application.
inject
and observer
from mobx-react
.
inject
injects the store into the component’s props.observer
makes the component reactive to changes in the store.NewStore
).App.tsx
).stores
object.inject
and observer
.