Merge pull request #126 from bh90210/121-react-template-build-error

fix(react template): reverting bugfix + code clean-up
This commit is contained in:
Lea Anthony 2019-06-22 08:39:16 +10:00 committed by GitHub
commit 9496d1d47f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 16 deletions

View file

@ -19,7 +19,11 @@
"extends": "react-app"
},
"browserslist": {
"production": [],
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",

View file

@ -26,22 +26,8 @@ class HelloWorld extends React.Component {
this.setState({ showModal: false });
}
startAsync() {
this.setState({
loading: true
});
window.backend.basic().then(result =>
this.setState({
loading: false,
result
})
);
}
render() {
const { loading, result } = this.state;
const { result } = this.state;
return (
<div className="App">
<button onClick={this.handleOpenModal} type="button">