I have a child component that has a checkbox and that component has a prop that notifies the parent of the change because the parent is the component that has the state variable