Ahhh.. well this all depends on how you want to code your analytics, what you want to track, and how to take into account re-usability of components where AA is not in use....
It sounds like you might be running a service to build websites for different clients that may or may not be using Adobe?
So first off... no.. you definitely don't want to add specific "App Measurement" code to components, especially if they may be used on sites without AA.
Here is some general ideas, cause I don't know what you want to actually track....
On our react pages, I had our developers add data attributes... I had one to hold information about the Activity Map Region (something like data-region) I used code in AA to use this data attribute for regions, instead of just reading the default id value (which was completely un-readable to most of the business)... I had rules to take the container header and make it into a slub... or have a backup region name if no title exists.
If there are specific call to action buttons, I have the developers add another data attribute, these ones can contain JSON formatted data about the clickable element with classification type info, so that I can create click tracking (IF needed) that can parse and use the JSON to have contextual information about the click... (stuff that might not be parse-able from the anchor href, or if a button, showing the link where that button is going).
IF you need to know what containers are loaded on the page, each container could add a value to a page level object variable set in the main app.js...
Basically, add some basic, generic context that can be used if AA exists, ignored if not, or even be used by other analytics programs if they need to leverage it...
I wouldn't make it AA specific... but something that AA can use when the code exists in Launch to use it.....
You could then provide some basic guides on how to read these elements, and then no matter what tool is in use (Adobe, GTM, etc) the generic data can be turned into specific tracking depending on needs.....