mirror of
https://github.com/wassname/generator-react-webpack.git
synced 2026-10-30 13:20:15 +08:00
Added architecture option for Alt (http://alt.js.org), actions and stores
This commit is contained in:
1 parent
9fd0f0ae54
commit
0b732e1a7c
8 files changed
+53
-3
No files matched your search
@@ -0,0 +1,21 @@
|
||||
var alt = require('../alt');
|
||||
|
||||
<% if (es6) { %>class <%= classedName %> {
|
||||
constructor() {
|
||||
|
||||
this.bindListeners({
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
} <% }
|
||||
else { %>var <%= classedName %> = alt.createStore({
|
||||
|
||||
bindListeners: {
|
||||
|
||||
}
|
||||
|
||||
}); <% } %>
|
||||
|
||||
<% if (es6) { %>export default alt.createStore(<%= classedName %>, '<%= classedName %>'); <% }
|
||||
else { %>module.exports = <%= classedName %>; <% } %>
|
||||
Reference in new issue
Block a user