Created
October 25, 2018 17:33
-
-
Save shubhang93/62e86a44c834c1dbac27fc604fc3ea55 to your computer and use it in GitHub Desktop.
mobx-caveats
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 message = mobx.observable({ | |
title: "Foo", | |
author: { | |
name: "Michel" | |
}, | |
likes: [ | |
"John", "Sara" | |
] | |
}) | |
mobx.autorun(()=>{ | |
console.log(message) | |
mobx.trace() | |
}) |
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
<script src="https://unpkg.com/mobx@5.5.2/lib/mobx.umd.js"></script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment