How can you transfer data from a child component to a parent component in react? | Data Sharing | react Interview Questions | NextRound.in