← React Intermediate Questions - Set 8 Q77
React Intermediate Questions - Set 8
1 2 3 4
function Child({ onChange }) { return <input onChange={e => onChange(e.target.value)} />; } // parent passes setter, child calls it