Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React + Flux Store Example in ES6 #80

Closed
badnorseman opened this issue Jun 16, 2015 · 3 comments
Closed

React + Flux Store Example in ES6 #80

badnorseman opened this issue Jun 16, 2015 · 3 comments

Comments

@badnorseman
Copy link

How would you write this in ES6?

var EventEmitter = require("events").EventEmitter
var assign = require("react/lib/Object.assign")
...
var ProductStore = assign({}, EventEmitter.prototype, {
...
emitChange: function() {
this.emit("change")
},

@domenic
Copy link
Contributor

domenic commented Jun 16, 2015

Perhaps this is a question better for StackOverflow, instead of filed as a bug on the ES6 feature showcase?

@domenic
Copy link
Contributor

domenic commented Jun 16, 2015

IMO framework-specific examples are not a great fit. But that's the last I'll say on the matter.

@tiye
Copy link

tiye commented Jun 17, 2015

Probably an issue related to Babel https://gitter.im/babel/babel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants