Find usages of React components that use a certain optional prop?

 

I would need this quite often: 

Call "Find Usages (Alt + F7)" for a component (here ItemsTable, which is used hundreds of times in my codebase) but only when a certain optional prop (e.g. menuItems) is used.

Is this possible?

0
2 comments

Did you try searching for menuItems usages instead of searching for component usages?

0

Yes. This searches for usages within ItemsTable but not for calls like

 

<ItemsTable menuItems = {}/>
0

Please sign in to leave a comment.