New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remains 0 #7
Labels
feat
feature project
Comments
Stackoverflowで質問しました。 |
this.setState({ input: event.target.value }); これでは、文字列の結合を行っている。 this.setState({ input: +(event.target.value) }); または this.setState({ input: Number(event.target.value) }); を使用する。 |
以前の状態を保存するなら、
|
inputに初期値を入れることを忘れない。 state = {input:0};
<input value={this.state.input}> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue
https://www.useloom.com/share/43bd30dc0f0741f7b09c63a3728d2ba9
The text was updated successfully, but these errors were encountered: