Adding a method to a class component

How to pass class component method to child component in React