Created
February 27, 2020 18:24
-
-
Save r3dm1ke/44aae7a038517aa2cb8b0e0e87b8c48e 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'; | |
function App() { | |
const [name, setName] = useState(''); | |
return ( | |
<> | |
<input value={name} onChange={e => setName(e.target.value)} /> | |
<p>Hello, {name}</> | |
</> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment