Skip to content

Instantly share code, notes, and snippets.

View dcworldwide's full-sized avatar

dc dcworldwide

  • London
View GitHub Profile
@dcworldwide
dcworldwide / gist:bcc4769854df0bf6ec41f620fab802fa
Created September 13, 2016 07:58
Mobx modal store design poc
import * as React from "react";
import { observable, action, autorun } from 'mobx';
import { Promise } from 'es6-promise';
import { FlatButton } from 'material-ui';
import { StoreManager } from './StoreManager';
export class ModalStore {
storeManager: StoreManager
@observable public isOpen: boolean = false;
@observable public actions = [];