Call a function in child component from parent component in React

 

Consider the following parent component
Consider the following child component
As shown above we can make use of “ref” on child component and using this.refs we can call any function in the child component