I'm doing an audit in a large codebase, and I need to search to find all uses of a component where it is used with a given prop. I'm thinking a regex could be useful here, but I can't figure out how to handle potential newlines in the markup. I need to be able to differentiate between these two usages, finding the latter:
<Component
prop1="value1"
prop2={2}
/>
<Component
prop1="value1"
targetProp={3}
prop2={2}
/>
I don't care about the value of the target prop, just that it exists on the component.