Created
July 1, 2018 13:51
-
-
Save unk/d292b917c8cabc08bff41956bdb147a4 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 { decorate, observable } from "mobx" | |
class Todo { | |
id = Math.random(); | |
title = ""; | |
finished = false; | |
} | |
decorate( Todo, { | |
title: observable, | |
finished: observable | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment