Open mattiaerre opened 4 years ago
I am working on a React app that uses hooks and I've come up with this solution to use the logEvent
function w/o having to decorate my components w/ the <Amplitude />
wrapper, let me know what you think. It'd be nice if you could integrate something similar into the main library; I'd be more than happy to create also a PR for that; thanks btw for the amplitude client and utilities 🙏
oh, I think there is already another package that does it: https://github.com/koblas/react-amplitude-hooks // cc @koblas
Description
logEvent
andinstrument
functionsCode
Usage