How do I know, where are my components used?

Viewed 2608

I'm currently working on quite a big react.js system/project with a lot of reused components and there are no unit tests or documentation whatsoever. My worries starts when I change (fix) one of these components for one specific use case and in 3 other places which I don't know at the time component broke down.

It would be amazing to have some tool which tells me, in which all places is some specific component use, so I can test it in all cases.

Do you have any recommendations?

2 Answers

Use shift+f12 after selecting class, function or method to see usage in a folder if you are using VsCode.

In visual studio code press shift+f12 after selecting class, function or method to see usage in a folder if you are using VsCode.

Related