Quick Renaming .js to .jsx for React
The Command (PowerShell)
I ran this specific script in your terminal. It uses "piping" (|) to pass the result of one command to the next, like a bucket brigade.
powershellGet-ChildItem -Path src -Recurse -Filter *.js | Where-Object { $_.Name -notin @('index.js', 'reportWebVitals.js', 'setupTests.js') } | ForEach-Object { if (Select-String -Pattern "<[a-zA-Z]" -Path $_.FullName -Quiet) { Write-Host "Renaming $($_.Name) to .jsx"; Rename-Item -LiteralPath $_.FullName -NewName ($_.Name -replace '\.js