Example code for my "Elegant async code with ES2015 Promises" talk
This is an extremely fake email client app, written in React (with JSX), to demonstrate elegant async code with ES2015 Promises, a talk I'm giving at MK.js on 23 Feb 2016.
From a clean checkout, get the app into your browser in one line:
npm install && npm start
At this point, if you want to start tinkering, open another terminal and type:
npm install -g gulp-cli
gulp watch
At time of writing, this is only going to work in Firefox, Chrome and Opera, since it uses both Promise
and fetch()
natively.
If the talk piqued your interest, try these:
- Promises/A+ - open standard for Promises behaviour
- States and Fates - reference of Promise-related terminology
- Embracing Promises in JavaScript - post by Jack Franklin, gave me the idea for this talk
- es6-promise - polyfill for using Promises in older browsers
- That's so fetch! - post by Jake Archibald going into depth about
fetch()