Here's a way to update the parent component state through the child component in ReactJS by attaching an event in the child component and passing it as props to parent component and defining the handler of that click as per one's need in parent component