Created
July 13, 2021 22:46
-
-
Save baobao/0f1f9eb130c0486fbc9acdcb044bb171 to your computer and use it in GitHub Desktop.
This file contains 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
<TextArea onChange={(event) => { | |
const changedText = event.target.value | |
// save localStorage | |
localStorage.setItem("savekey", changedText) | |
}} | |
value = changedText | |
/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment