Hey,
Is it just me doing something wrong or it doesn't work with PS4 nor Nacon controllers?
I've simply pasted your example to check if that works and there is no onConnect() call at all.
For the record, I have "react-gamepad": "SBRK/react-gamepad" in my package.json
Best regards,
~Michał