title: React retains the input value after the page is refreshed and keeps it in local storage
body: <p>I'm doing a feature using react, which saves text from input and automatically updates to local storage, I want even if I refresh the page the text in the input stays and the state doesn't reset from scratch. Thanks for helping me, have a nice day. please give me an the demo in the following codesandbox <a href="https://codesandbox.io/s/react-input-not-reload-after-refreshing-6ckto" rel="nofollow noreferrer">codesandbox link</a>. one more time thank you very much</p>