title: How to set the state of parent component in react from inside child component
body: <p>How to set the state of parent component in react from inside child component? Child component is just a function where I want to set the state of the component.</p>