26
ReactJs HOW TO: Create a React basic App from console
Hi React-lovers! today I want to show you how to create a react app from the CLI!. It sounds scary, isn't it? but there's no need to be afraid, it doesn't bite your bum! đ So let's go!!
First of all we need create a folder where save our app, in this case weÂŽll do it on our Desktop, (you can do it wherever you want), after created it, You are going to copy the path of the folder, like this:
- Open the folder
- In the adress bar -> right click and copy the adress
After that u will open the CLI (the Terminal) and type:
cd ( and paste the path that you copy previously)
like this:
After this you will press enter and type this comands :
npx create-react-app (Name of you app)
You will see a lot of stuff running free on your screen don't be afraid đ it is only little workers making you app possible!
After this, all you have to do is type on terminal:
cd (The name of you app)
npm start
And you get it! u first app is runnig!. The ball is in your court now, everything is possible ! ....uff..... i believe that we call it a day! đ€©
in the next posts we will see more things and even mini-projects yes or no? let me know! â€ïžâđ„
26