In order to refactor a client-side project, i\'m looking for a safe way to find (and delete) unused code.
What tools do you use to find unused/dead code in large re
With findead you can find all unused components in your project. Just install and run:
npm i -g findead
findead /path/to/search
This question recalls me that react by default removes the deadcode from the src when you run the build command.
Notes: you need to run build command only when you want to ship your app to production.