From the React Official Documentation I came to know that we have to use React frameworks like Next.js, Remix, Gatsby etc.
create-react-app is no longer valid if we want to create a React app. 😞
From React's official documentation
You can definitely use React without a framework—that’s how you’d use React for a part of your page. However, if you’re building a new app or a site fully with React, we recommend using a framework.
But as a beginner I want to explore only the React library. That's why I need to install React in my local. To acheive this we can use bundler tools like Vite.
So let's start with the installation. 🤗😁
Let's first install Node.js. Then Let's scaffold our first Vite project for React.
npm create vite@latest
yarn create vite
After enter there will be prompt to proceed. Next steps will be:
- Enter Project name: …
- Select a framework: ›
- Select a variant: ›
There will be several options to select which Framework/library/Language to select. We can select by moving the arrow keys.
After this the our react application will be created. In this case my React app name is
Now after all this We just have to
npm run dev
Our react app will be ready and running.
Now let's open the URL
http://localhost:5174/ in browser and see our created React app is running.
It is really great how Vite has made the steps really easy to install and scaffold any library. I have became a fan of Vite. I will try to go through the documentation of Vite later. 🙌
I will dive into development Application from now on. 🤞
Thank you for reading 🙏 will keep posting on my learning here. Till then bye 👋😄