Created
April 7, 2021 22:47
-
-
Save aqrojo/873defb17eb7e09c6265034092cbf04c to your computer and use it in GitHub Desktop.
mobx-introduction_02_observables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const manager = observable ({ | |
// model | |
thermometerList: [], | |
// actions | |
addThermometer() { | |
manager.thermometerList.push(getThermometer({...})) | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instancia de thermometer:
https://gist.github.com/aqrojo/d11ced61b4bf3de294e8c8763315157b#file-getthermomether-js-L14