I got a React functional component with a callback which is passed on as props to another component:
const MyComponent = (props) => { const [