The following command will rename all .js files extension to .jsx ignoring all files inside node_modules folder:
find . -name "*.js" -not -path "./node_modules/*" -exec bash -c 'git mv "$1" "${1%.js}".jsx' - '{}' \;
Note: you might get a fatal errors:
fatal: not under version control, source=src/components/MDTypography/MDTypographyRoot.js, destination=src/components/MDTypography/MDTypographyRoot.jsx
Solution: Make sure you have adde git and to commit all your git changes:
$ git add . ; git commit -m "updated commit"
Hope this helps