Configuration guide for React

Is there a guide for using Matomo with React? I’ve been through the instructions for single page applications, but I’m still not sure where to include the addEventListener and how to track actions that do not change the URL (such as opening dialogs). Thanks.