this the simple explanation/codeSnippet for useState hook in reactjs
import react,{useState} 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 that'sall
Check gist if you want https://gist.github.com/krishnadevz/ac301ae23a7060800e87ab95159454cd
Top comments (0)