function App() {
const [inputData,setInputData]=useState(false)
function updateData(e){
setInputData(e.target.value)
}
return (
<>
{ inputData?
<h1> {inputData}</h1>
:null }
<input type="text" onChange={updateData} />
</>
);
}
© www.thecoderjob.com. All Rights Reserved. Designed by HTML Codex