I am trying to log an event using userID, but unfortunately it was throwing an error saying that logEvent was undefined. Below is the code I am using
amplitude.getInstance().setUserId(email).logEvent('Event Clicked',{
'App Name' : app_name
});
Note: Doing this in React JS