mirror of
https://github.com/taigrr/wails.git
synced 2026-04-15 19:30:49 -07:00
fix(react template): reverting bugfix + code clean-up
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user