diff --git a/react_webgame/main/index.html b/react_webgame/main/index.html index 9f190d6e..8cd71fdf 100644 --- a/react_webgame/main/index.html +++ b/react_webgame/main/index.html @@ -32,22 +32,26 @@ value: '', } }); + this.input.focus(); } else { this.setState({ result: '땡', value: '', }); + this.input.focus(); } } onChange = (e) => this.setState({ value: e.target.value}); + onRefInput = (c) => { this.input = c; }; + render() { return (
{this.state.first} 곱하기 {this.state.second} 는?
- +
{this.state.result}