Last active
August 11, 2022 18:24
-
-
Save pablocattaneo/075fa181b93afe63f4b5f16b21c1bf44 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// React.ChangeEvent<HTMLInputElement> | |
// Source https://stackoverflow.com/a/49820103/3599272 | |
handleChange(e: React.ChangeEvent<HTMLInputElement>) { | |
// No longer need to cast to any - hooray for react! | |
this.setState({temperature: e.target.value}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment