require('es6-promise').polyfill();require('isomorphic-fetch'); code example
Example 1: installing isomorphic-fetch and simply doing
npm install --save isomorphic-fetch
Example 2: isomorphic fetch
yarn add isomorphic-fetch
npm install --save isomorphic-fetch
yarn add isomorphic-fetch