I have a form that I need to get the information from all the inputs and save it in state.
What am I doing wrong?
const [name,setName] = useState("");
return (
<div className="App">
<div class="inputfield">
<label>Campaign Name</label>
<input type='text' required maxLength='20' onChange={setName()} className="input"/>
</div>
</div>
)