fix(react template): reverting bugfix + code clean-up

This commit is contained in:
ktc 2019-06-19 20:09:23 +03:00
commit 70ccb8942b
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">