Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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