Last active
March 17, 2020 05:22
-
-
Save krishnadevz/ac301ae23a7060800e87ab95159454cd to your computer and use it in GitHub Desktop.
useState hook in functional component
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,{useStae} from "react" | |
function App(){ | |
const [answer]=useState("yes lovely") | |
return( | |
<div> | |
<h1>Are you coming{answer}</h1> | |
</div> | |
) | |
} | |
export default App | |
//if anyone having something please drop comment we add or merge your thing thasall |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
useState hook in functional component