Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update index.md #314

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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