Creating a React application
Table of Contents
Creating a React application
- Do not use: https://legacy.reactjs.org/tutorial/tutorial.html#setup-option-2-local-development-environment
- Use: https://react.dev/learn/start-a-new-react-project#nextjs-pages-router
- https://create-react-app.dev/
If you want to create it inside the folder we are already in:
If you want to create it in a different folder than the one we are already in:npx create-react-app my-app-01
npx create-react-app /home/explorer436/Downloads/GitRepositories/programming-playground/react-playground/episode1
- Vite
- https://vite.dev/guide/
- Much faster than
create-react-app
- Provides tons of features right out of the box - we get way better experience
- Scaffolding Your First Vite Project: https://vite.dev/guide/#scaffolding-your-first-vite-project
# npm 7+, extra double-dash is needed: npm create vite@latest my-react-app -- --template react