This is a simple React application. This application serves as a basic template for a react applications.
This project is bootstrapped with Vite.
-
Before running the application, make sure all dependencies are installed. To install dependencies, run following command in terminal:
npm install
-
Once dependencies are installed, run the following command to start the application:
npm run dev
-
Refresh the URL in simple browser to see the output. As shown below
Studio will automatically open the app in a new browser tab. If not, you can use the following steps to open the simple browser
-
From VS Code command pallette(
Ctrl/Cmd + Shift + P
), run Studio Manager: SimpleBrowser Default URL command. This will open the app in a new browser tab. -
Your app runs on hosted env which can be accessed using host id, port provided in file .vsocde/.studio/studio-env.json. Use values to create the URL as follows:
https://<STUDIO_HOST_ID>-3000.ocws.app
This means node_modules are missing in your workspace, please refer the 'How to run' section and make sure you have followed the steps in sequence
Yes, you can use create-react-app instead Vite, the default workspace is loaded with Vite setup, you can remove the Vite dependencies, add create-react-app dependencies and update the scripts to start using create-react-app.