import './App.css';
import React , { useState} from "react"
function App() {
const [input , setInput] = useState('')
const [newSubmitInput , setSubmitInput ] = useState('')
function clickHandle (e){
e.preventDefault();
}
return (
<div className="container">
{input ? <h1> Hello {input}</h1> : <h1>Type an input</h1>}
<form onSubmit={clickHandle}>
<input id=" nameInput"type="text" placeholder='Whats Your Name?'value={input} onChange={e => setInput(e.target.value)}/>
<button onClick={clickHandle} type="submit">Submit</button>
</form>
</div>
);
}
export default App;
How do I manipulate this code so that once a user submits something that's when an h1 will conditionally render and display hello and then what the user inputted?