I have a large react + TS project that has a src/components
folder. I may have previously made components that are no longer being used in other components. Is there any way to find such unused exports so that I can remove them from my project and do not mess up with the application.
Asked
Active
Viewed 21 times
0

Syed Mazhar
- 119
- 2
- 10
-
If you're using VS Code IDE, you can search for references of your components on the entire project, if there are none you can safely remove them. As for organizing imports you can checkout [this answer](https://stackoverflow.com/a/46722805/9464846) – Anass Nov 15 '22 at 20:54