Run React on Your local machine (2024)

So you started learning React and you are wondering how to run your React app locally. Well, you have come to the right place!

If you are starting your project new, read the guide below. However, if you have your files and want to edit or continue working on them locally(watch out for my next article on how to do so)

What you will need:

Step 1 - Opening VS Code and Root folder

Launch VS Code on your local machine.

Open and add the root folder (This is the folder you want to save your projects in) to your workspace on Vscode.

Run React on Your local machine (1)

Step 2 - Open a new terminal

Go to the terminal on the top menu and click New terminal or ctrl+shift+'.

Run React on Your local machine (2)

Run React on Your local machine (3)

Choose the folder you want your react app to be created in if you have many folders added to your workspace and the terminal will be opened! Check the image above for reference.

Step 3 - Creating the folder

Type the below command into the terminal to create a react folder with boiler-plate code. Travel-journal is the name of your folder and should in small letters only!

npx create-react-app travel-journal

Run React on Your local machine (4)

This shows your new react app is being created!

Run React on Your local machine (5)

This shows your new react app is ready to be launched! Notice the new folder with the name of your app? Yes! that means it worked!

Step 4- Open and run the local server

To confirm it has worked, Open and run the local server by typing the below code!

cd my-appnpm start

Run React on Your local machine (6)

This is the confirmation that it has worked!

Step 5 - Congratulations on launching your first React app locally

Run React on Your local machine (7)

This marks the end of the tutorial. If you have any questions or feedback, please leave a comment below. Happy Coding!

Run React on Your local machine (2024)
Top Articles
Council Post: 10 Secrets To Networking Success For Developers
What Is a Good Credit Score for an Auto Loan? - Experian
Where are the Best Boxing Gyms in the UK? - JD Sports
Access-A-Ride – ACCESS NYC
From Algeria to Uzbekistan-These Are the Top Baby Names Around the World
PRISMA Technik 7-10 Baden-Württemberg
Chase Claypool Pfr
Fcs Teamehub
Rochester Ny Missed Connections
Espn Expert Picks Week 2
fltimes.com | Finger Lakes Times
Goldsboro Daily News Obituaries
Mens Standard 7 Inch Printed Chappy Swim Trunks, Sardines Peachy
Best Fare Finder Avanti
Craiglist Galveston
Curtains - Cheap Ready Made Curtains - Deconovo UK
Www Craigslist Com Phx
Is The Yankees Game Postponed Tonight
Craigslist Prescott Az Free Stuff
Rqi.1Stop
Bethel Eportal
Craigslist Roseburg Oregon Free Stuff
Costco Gas Hours St Cloud Mn
Prep Spotlight Tv Mn
What Equals 16
SOGo Groupware - Rechenzentrum Universität Osnabrück
Aes Salt Lake City Showdown
Airg Com Chat
How often should you visit your Barber?
R/Orangetheory
Grand Teton Pellet Stove Control Board
Tamilrockers Movies 2023 Download
Tamil Play.com
Black Adam Showtimes Near Amc Deptford 8
W B Crumel Funeral Home Obituaries
Gwu Apps
Go Smiles Herndon Reviews
Craigslist Pa Altoona
Craigs List Palm Springs
Best Restaurants West Bend
Cocaine Bear Showtimes Near Cinemark Hollywood Movies 20
Quiktrip Maple And West
Quaally.shop
Keci News
Mlb Hitting Streak Record Holder Crossword Clue
25100 N 104Th Way
Game Akin To Bingo Nyt
Dmv Kiosk Bakersfield
Where Is Darla-Jean Stanton Now
Philasd Zimbra
Land of Samurai: One Piece’s Wano Kuni Arc Explained
Comenity/Banter
Latest Posts
Article information

Author: Mr. See Jast

Last Updated:

Views: 5816

Rating: 4.4 / 5 (55 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Mr. See Jast

Birthday: 1999-07-30

Address: 8409 Megan Mountain, New Mathew, MT 44997-8193

Phone: +5023589614038

Job: Chief Executive

Hobby: Leather crafting, Flag Football, Candle making, Flying, Poi, Gunsmithing, Swimming

Introduction: My name is Mr. See Jast, I am a open, jolly, gorgeous, courageous, inexpensive, friendly, homely person who loves writing and wants to share my knowledge and understanding with you.