Skip to content

Commit

Permalink
Add ES2015+ example
Browse files Browse the repository at this point in the history
  • Loading branch information
jamonholmgren committed Mar 5, 2016
1 parent 31bd9c4 commit b5d2f38
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ For a node.js implementation, try [node-fetch](https://github.com/bitinn/node-fe

For use with webpack, refer to [Using WebPack with shims and polyfills](http://mts.io/2015/04/08/webpack-shims-polyfills/).

For babel and es2015+, make sure to import the file:

```javascript
import 'whatwg-fetch';
fetch(...);
```

## Usage

The `fetch` function supports any HTTP method. We'll focus on GET and POST
Expand Down

0 comments on commit b5d2f38

Please sign in to comment.