create-react-app already provides a polyfill for Fetch (#3)

This commit is contained in:
Joe Haddad
2017-02-08 11:46:57 -05:00
committed by Mars Hall
parent 2d4457b019
commit 8004a30f9c
2 changed files with 2 additions and 4 deletions

View File

@@ -7,8 +7,7 @@
},
"dependencies": {
"react": "^15.4.2",
"react-dom": "^15.4.2",
"whatwg-fetch": "^2.0.2"
"react-dom": "^15.4.2"
},
"scripts": {
"start": "react-scripts start",

3
react-ui/src/App.js vendored
View File

@@ -1,12 +1,11 @@
import React, { Component } from 'react';
import logo from './logo.svg';
import 'whatwg-fetch';
import './App.css';
class App extends Component {
constructor(props) {
super(props);
this.state = {
this.state = {
message: null,
fetching: true
};