function Parent() { const [value, setValue] = React.useState(""); function handleChange(newValue) { setValue(newValue); } // We pass a callback to Child return <Child value={value} onChange={handleChange} />; }