Created
March 31, 2020 10:40
-
-
Save abdelfattah-atef94/6761ec1fdf8de87124a9e7ad2df19cca 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
import React, { useState } from "react"; | |
export default function App() { | |
const [inputValue, setInputValue] = useState(""); | |
return ( | |
<div className="App"> | |
<input value={inputValue} onChange={e => setInputValue(e.target.value)} /> | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment