score:0

Accepted answer
const Child = ({ setVisible }) => (
  <button onClick={() => { setVisible(false); }}>Hide</button>
);

Related Query

More Query from same tag