Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions blog/vite-create-react-app/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ Fourth, rename all extensions of files which are using JSX from ".js" to ".jsx",
mv src/App.js src/App.jsx
mv src/index.js src/index.jsx
```
Or

to renames all ".js" files into "jsx" at once you can use this command. This will change all ".js" extensions into ".jsx":

```sh
find ./src -name "*.js" -exec sh -c 'mv "$0" "${0%.js}.jsx"' {} \;
```

If you are not renaming all your React/JSX related files this way, essentially all files that are using angle brackets, you may get the following or a similar error:

Expand Down