Created by: gaearon
Test plan:
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
async componentDidMount() {
try {
await fetch('http://google.com');
} catch (lol) {
alert('oh noes')
}
}
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welcome to React</h2>
</div>
<p className="App-intro">
To get started, edit <code>src/App.js</code> and save to reload.
</p>
</div>
);
}
}
export default App;
It worked.