Skip to content

Instantly share code, notes, and snippets.

@aqrojo
Created April 7, 2021 22:47
Show Gist options
  • Save aqrojo/873defb17eb7e09c6265034092cbf04c to your computer and use it in GitHub Desktop.
Save aqrojo/873defb17eb7e09c6265034092cbf04c to your computer and use it in GitHub Desktop.
mobx-introduction_02_observables
const manager = observable ({
// model
thermometerList: [],
// actions
addThermometer() {
manager.thermometerList.push(getThermometer({...}))
}
})
@aqrojo
Copy link
Author

aqrojo commented Apr 8, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment