Put the function definition in the parent component. Pass it to the child component as a prop using the syntax Child handleClick=handleClick />. Use the child component’s function.