Beginner's Guide to Setting Up a React Development Environment

Day 2:

Q. What are the things you need before you start practicing React JS?

Ans: Node JS and VS Code ( or any code editor/ IDE).

In order to run our React application in browser we need to convert React code into browser understandable code. In order to do that we need compiler and bundler.

To install and config these things is complex process, so we will use templates like create-react-app, vite-js as our starting point.

With vite-js, we can quickly set up a new React project with a proper structure and default configurations. This tool abstracts away the complex setup and allows us to start coding immediately.

Run npm create vite@latest and then follow the prompts.

Once you done with installation run npm run dev , it will launch the application.

Q. Why we use templates like create-react-app , vite-js