diff --git a/README.md b/README.md index 270a3e3..e4e8061 100644 --- a/README.md +++ b/README.md @@ -25,9 +25,14 @@ bower install --save isomorphic-fetch es6-promise ## Usage ```js +// If using ES5 require('es6-promise').polyfill(); require('isomorphic-fetch'); +//If using ES6 +import { polyfill } from 'es6-promise'; +import 'isomorphic-fetch'; + fetch('//offline-news-api.herokuapp.com/stories') .then(function(response) { if (response.status >= 400) {