Created
July 27, 2017 09:47
-
-
Save mweststrate/48d216ec5ac5d6d0b3d7805a601afd72 to your computer and use it in GitHub Desktop.
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
import { getSnapshot } from 'mobx-state-tree' | |
const task1 = Todo.create({ title: "Try MST!" }) | |
task1.toggle() | |
console.dir(getSnapshot(task1)) | |
// prints { title: "Try MST!" , finished: true } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment