'How do I know, where are my components used?

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?



Solution 1:[1]

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

Solution 2:[2]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sabito 錆兎 stands with Ukraine
Solution 2 Rajiv Singh