Please refer Faq'spage in documentation itself for queries of customization like colors,rtl ,dark,styles,etc..
Welcome to React..
React is an application design framework and development platform for creating
efficient and sophisticated single-page apps. It helps you to build modern
applications for the Desktop, Web and Mobile.
Welcome to vite..
is a build tool that aims to provide a faster and leaner development experience for modern web projects.
This guide explains how to set up your environment for vite development using
the React tool. It includes information about prerequisites, installing
this, creating an initial workspace and starter app, and running that app
locally to verify your setup.
For getting started an React Application you needs 2 things as Prerequisites.
To use the React Framework, you should be familiar with the following:
vite requires a current, active LTS (long term support) or maintenance LTS
(long term support) version of Node.js.
Download latest version of node.js from nodejs.org.
Install Node.js using downloaded file.
To check your node version, run node -v in a terminal/console window (cmd)
The vite and React applications depend on npm packages for
many features and functions.
To download and install npm packages, you need an npm package
manager.
This guide uses the npm client command line interface, which is installed with
Node.js by default.
To check that you have the npm client installed, run npm -v in a
terminal/console window (cmd)
For better understanding React we suggest you once go through official
documentation of React from React
Documentation and for vite Vite documentation
You develop apps in the context of an vite-React workspace.
To create a new workspace and initial starter app just follow the below steps
First step :
npm create vite@latest
Project name : my-app
Third step:
select your required framework you are familiar with,
Select a framework: React
Fourth step:
select your required script language you are familiar with,
Select a variant: javascript
The vite installs the necessary React npm packages and other dependencies. This can take a few minutes. This creates a new workspaces and a simple Welcome app, ready to run.
The vite includes a server, so that you can build and serve your app locally.
cd my-app
npm run dev
The yarn or npm serve command launches the server, watches your files, and rebuilds the
app as you make changes to those files.
The run dev
just Option automatically opens your default
browser to http://localhost:5173/.
If you have already download and install node.js and React then ignore prerequisites.
Download latest version of node.js from
nodejs.org.
Install Node.js using downloaded file.
To check your node version, run node -v in a terminal/console window (cmd)
To install the React using npm, open a terminal/console window and run the following command.
npm install react
(or)yarn install react
valex/vite-file>
npm install
(or)yarn install
Once you serve your application by default it will take their default port using http://localhost:5173/npm run dev
(or)yarn run dev
npm install
If your are using npm install, You have to delete the
yarn-lock file
(or)
yarn install
If your are using yarn install, You have to delete the
package-lock.json file
we have to use only one file example: (for yarn yarn-lock) & (for npm package-lock.json) file
yarn run build
(or)npm run build