Find all uses of a React component with a certain prop

Alasdair McLeay
Apr 22, 2021

--

Using this regex, e.g. in vscode search

<Component[\w\n]([^>])* propName=

Will match, for example:

<Component
className={classes.component}
label="Label"
propName={anything} />

--

--