mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 22:55:48 +01:00
fix(react template): reverting bugfix + code clean-up
This commit is contained in:
parent
d3cd3d43bd
commit
70ccb8942b
2 changed files with 6 additions and 16 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue