Created
July 14, 2017 16:06
-
-
Save tetsuo/5df506fe51e702e0ca5a86da13549c47 to your computer and use it in GitHub Desktop.
xus-example-index-1
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 { types } from "mobx-state-tree" | |
const Todo = types.model("Todo", { | |
title: types.string, | |
done: types.boolean | |
}, { | |
toggle: function() { | |
this.done = !this.done | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment