Created
March 31, 2020 10:27
-
-
Save abdelfattah-atef94/3fd910daf8d1310ceb6cfedb4dab13dc 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