I am developing a react web application and i want to automatically track different events of the web app using mixpanel . I can do that manually but it will take a lot of time . I have used typescript for implementing the mixpanel component .