From 8004a30f9c82b709afa5b0f9e6f4ab64fc1748fd Mon Sep 17 00:00:00 2001 From: Joe Haddad Date: Wed, 8 Feb 2017 11:46:57 -0500 Subject: [PATCH] create-react-app already provides a polyfill for Fetch (#3) --- react-ui/package.json | 3 +-- react-ui/src/App.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/react-ui/package.json b/react-ui/package.json index 966727b..54195b9 100644 --- a/react-ui/package.json +++ b/react-ui/package.json @@ -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", diff --git a/react-ui/src/App.js b/react-ui/src/App.js index 0bed6f2..b11d360 100644 --- a/react-ui/src/App.js +++ b/react-ui/src/App.js @@ -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 };