React Installation
This page guides how to setup a react app using Vite as bundler
1
Initialize a Vite React Application
Open a terminal in the directory where you want to create your project:
Use the yarn create command to create a new Vite Project:
yarn create vite
Enter the project name and framework when prompted
√ Project name: ... OrbitNavigator
√ Package name: ... orbitnavigator
√ Select a framework: » React
√ Select a variant: » JavaScript
3
Project Structure
The Project Structure should look like this
my-react-app/
├── node_modules/
├── public/
├── src/
│ ├── App.jsx
│ ├── main.jsx
│ ├── app.css
│ └── index.css
├── .gitignore
├── index.html
├── package.json
├── vite.config.js
└── yarn.lock
Last updated