Do content-tracking data attributes work with client-side generated HTML (Vue/React)?

I’m wondering if the content-tracking feature works if the DOM (and the data attributes) are generated after Matomo is initialized. Does Matomo create a “catch-all” even-handler that looks at the event element chain for the attributes? Or does it attach specific event handlers on load to all elements that have the data attributes? In the latter case, the tracking won’t work for dynamically generated DOM elements (e.g. Vue or React applications or content loaded via fetch). If that’s the case, is there a way to re-initialize the content tracking for the new DOM structure?