UNPKG

376 BJavaScriptView Raw
1module.exports = function(name, upper){
2
3return `
4import { observable, action, computed } from 'mobx';
5
6class ${upper}Store {
7 @observable instanceVariable: Object;
8
9 constructor(){
10 this.instanceVariable = { /* initialize instance variables in constructor */};
11 }
12}
13
14const ${name}Store = new ${upper}Store();
15
16export default ${name}Store;
17export { ${upper}Store };
18`;
19}
\No newline at end of file