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