create-react-app already provides a polyfill for Fetch (#3)
This commit is contained in:
@@ -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
3
react-ui/src/App.js
vendored
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user