Which of the following is the correct way to bind a value to an input field in React?
<input value="name" />
<input defaultValue={name} />
<input value={name} onChange={handleChange} />
<input onChange={handleChange} />
This question is part of this quiz :
React Forms