I'm currently building a rather large isomorphic React/Flux application in ES6 and ES7.
With our Flux implementation that we're using[0], async actions to external services become amazingly simple.
async sendRequest(payload) {
try {
let result = await this.api.sendRequest(payload);
return await result;
} catch (e) {
if (e.name === 'ServerException') {
this.errorActions.serverError(e);
return null;
}
this.errorActions.genericError(e);
return null;
}
}
Having a class system on top of prototype system, removing a lot of the boilerplate is great. Browserify/CommonJS and Babel make for a phenomenal build system, and being able to with few exceptions render everything on the server correctly is brilliant.
Javascript has come a long way. The best part of destructuring is simplifying `import` statements
import { fooFunc } from './Bar';
I highly recommend checking it out, as the confluence of ES6/7, Babel, React and Flux (with one way data-flow) feels like the future but here today. That, and I'm stoked that functional programming concepts are taking off!
[0] http://acdlite.github.io/flummox
With our Flux implementation that we're using[0], async actions to external services become amazingly simple.
Having a class system on top of prototype system, removing a lot of the boilerplate is great. Browserify/CommonJS and Babel make for a phenomenal build system, and being able to with few exceptions render everything on the server correctly is brilliant.Javascript has come a long way. The best part of destructuring is simplifying `import` statements
I highly recommend checking it out, as the confluence of ES6/7, Babel, React and Flux (with one way data-flow) feels like the future but here today. That, and I'm stoked that functional programming concepts are taking off![0] http://acdlite.github.io/flummox