I am using react-use-intercom.
Using following hook from the guide react-use-intercom which suggests to use functional components everywhere.
const { boot, shutdown, hide, show, update } = useIntercom();
However I am using class components everywhere, is there any way that I can do use it in class component itself, because the official documentation has examples in functional component only. I want to use this methods on click of a button, i.e on some events.