ReactJS Tutorial – 2 – Hello World
![*](https://i0.wp.com/allprowebdesigns.com/wp-content/uploads/2023/12/1703053668_maxresdefault.jpg?resize=840%2C430&ssl=1)
Video Title: ReactJS Tutorial – 2 – Hello World
In this video let’s create a very first react application let’s begin by setting up our development environment for react we need two things installed node and a text editor of your choice for node go to node.js org download and install the latest stable release if you already have it installed make sure to
Update it for text editor I recommend vs code you can download and install it from code Visual Studio comm to get started I have created a folder called react and opened vs code inside that folder this folder is going to be a word space for the rest of the series
Now to create a new react application we will be making use of create react app create react app is a command-line interface tool that allows you to quickly create and run react applications with no configuration what that means is you simply run a command and an entire react project is created for you
So back in vs code open the integrated terminal and run the command npx create react app followed by the name of the project let’s call it hello world once the command completes you should have a new folder called hello world to run this application first navigate inside the project folder CD hello world
Now run the command NPM start the command will open the browser on localhost port 3000 with your hello world application up and running and you can see the instruction to get started edit Abdo chairs in the source folder so let’s go back to vs code expand the hello world project expand the source
Folder and edit app dot j s i will change the text to hello world and let me save the file when the changes are saved the browser will automatically refresh and you should see hello world displayed in the browser so there you go your first react application up and
Running before we move on to the next video though I want to discuss an alternate approach for creating react applications using the create react app package the first method which we already had a look at is using MPX we run the command MPX create react app followed by the project name but what
Exactly is npx NT x is an NPM package runner which gets installed when you install node and that is how we are directly able to run create react app without having to install it MPX takes care of that for us now there is a slightly different approach which just
Depends on NPM in this approach we installed the create react app package globally and then use the package to generate the prod so the first step here is to install the package globally using the command npm install create react app – G once it is installed you can run the command create
React app followed by the project name I prefer the first approach because I don’t have to install the package globally and I don’t have to worry about constantly updating the create react app package I will be using npx but I wanted to show you the NPM approach as well
Because you will find other videos and articles which take that approach the last thing I want is for a beginner to be confused with the very first step of creating a react application now that we understand how to generate a simple react app in the next video let’s understand the Applications folder
Structure thank you guys for watching I’ll see you guys in the next one
-
Sale!
Wireless WIFI Repeater Extender Amplifier Booster 300Mbps
$29.99$14.99 Add to cartWireless WIFI Repeater Extender Amplifier Booster 300Mbps
Categories: Electronics, Wi-Fi Router, Wireless Wi-Fi Extender Tags: 300Mbps, 802.11N, Amplifier, Booster, Extender, mobile wi-fi booster, Remote, WIFI, Wireless, Wireless WIFI, Wireless WIFI Repeater, Wireless WIFI Repeater Extender, Wireless WIFI Repeater Extender Amplifier, Wireless WIFI Repeater Extender Amplifier Booster, Wireless WIFI Repeater Extender Amplifier Booster 300Mbps$29.99$14.99 -
Sale!
Full RGB Light Design Gaming Headset Headphones with Mic
$24.99$14.99 Add to cartFull RGB Light Design Gaming Headset Headphones with Mic
Categories: Electronics, Gaming, Gaming Headsets Tags: Design, Full, Full RGB Light Design Gaming Headset, Full RGB Light Design Gaming Headset Headphones, Full RGB Light Design Gaming Headset Headphones with Mic, Gamer, Gaming, Gaming Headset Headphones, gaming headset wireless, Headphone, Headphones, Headset, Light, Mic, Package, RGB$24.99$14.99 -
Sale!
Wireless BlueTooth Multi-Device Keyboard Mouse Combo
$39.99$19.99 Add to cartWireless BlueTooth Multi-Device Keyboard Mouse Combo
Categories: Electronics, Gaming, Gaming Keyboards, Keyboard Mouse Combos Tags: Combo, Keyboard, keyboard mouse combos, Mouse, MultiDevice, Set, WireKeyboard Mouse Combo, Wireless, Wireless BlueTooth Keyboard Mouse Combo, Wireless BlueTooth Keyboard Mouse Combos, Wireless BlueTooth Multi-Device Keyboard Mouse Combo, Wireless BlueTooth Multi-Device Keyboard Mouse Combos$39.99$19.99 -
Sale!
High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar
$199.99$139.99 Add to cartHigh Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar
Categories: Gaming, Gaming Chairs Tags: Adjustable, Chair, computer chairs, Desk, Executive, Gaming, Girl, Headrest, High, High Back Leather Executive Adjustable Swivel Gaming Chair, High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest, High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar, High Back Leather Executive Adjustable Swivel Gaming Chairs, Leather, Lumbar, Office, Racing, Swivel$199.99$139.99 -
Sale!
Professional LED Light Wired Gaming Headphones with Noise Cancelling Microphone
$29.99$19.99 Select optionsProfessional LED Light Wired Gaming Headphones with Noise Cancelling Microphone
SKU: N/A Categories: Electronics, Gaming, Gaming Headsets Tags: Cancelling, Gaming, Gaming Headphones with Noise Cancelling Microphone, gaming headset, Headphones, Headset, LED, Light, Mic, Microphone, Noise, Professional, Professional LED Light Wired Gaming Headphones, Professional LED Light Wired Gaming Headphones with Noise Cancelling Microphone, Wired, Wired Gaming Headphones, Wired Gaming Headphones with Noise Cancelling Microphone$29.99$19.99 -
Sale!
Gaming Desk with LED Lights USB Power Outlets and Charging Ports
$349.99$249.99 Select optionsGaming Desk with LED Lights USB Power Outlets and Charging Ports
SKU: N/A Categories: Computer Desk, Gaming, Gaming Desk Tags: and Charging Ports, Charging, Desk, Desks, Gaming, gaming desk with led lights, Gaming Desks with LED Lights, Home, LED, Lights, Monitor, Office, Outlets, Port, Power, Room, Stand, USB, USB Power Outlets, White, Workstation$349.99$249.99 -
Sale!
Wired Mixed Backlit Anti-Ghosting Gaming Keyboard
$99.99$79.99 Add to cartWired Mixed Backlit Anti-Ghosting Gaming Keyboard
Categories: Electronics, Gaming, Gaming Keyboards Tags: Antighosting, Backlit, Blue, brown, Gaming, Gaming Keyboard, gaming keyboards, gaming keyboards and mouse, Keyboard, Laptop, Switch, Wired, Wired Mixed Backlit Anti-Ghosting Gaming Keyboard, Wired Mixed Backlit Anti-Ghosting Gaming Keyboards, Wired Mixed Backlit Gaming Keyboard$99.99$79.99 -
Sale!
Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset
$119.99$59.99 Add to cartWireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset
Categories: Electronics, Gaming, Gaming Headsets Tags: 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset, ANC, Audio, Bluetooth, Cancellation, Ear, Earphone, gaming headset, Headphones, Headset, Hi-Res Over the Ear Headphones Headset, HiRes, Noise, Wireless, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Headphones, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headsets$119.99$59.99 -
Sale!
Wired Sports Gaming Headset Earbuds with Microphone
$19.99$9.99 Select optionsWired Sports Gaming Headset Earbuds with Microphone
SKU: N/A Categories: Gaming, Gaming Headsets Tags: Accessories, Earbud, Earphone, Earphones, Gaming, gaming headset with microphone, Headphones, Headset, IOS, Microphone, Sports, Wired, Wired Sports Gaming Headset Earbuds, Wired Sports Gaming Headset Earbuds with Microphone, Wired Sports Headset Earbuds$19.99$9.99 -
Sale!
150W Universal Multi USB Fast Charger 16 Port MAX Charging Station
$49.99$29.99 Add to cart150W Universal Multi USB Fast Charger 16 Port MAX Charging Station
Categories: Charging Stations, Electronics Tags: 150W, 150W Charging Station, 150W Universal Multi USB Charging Station, 150W Universal Multi USB Fast Charger 16 Port MAX Charging Station, 150W Universal Multi USB Fast Charger 16 Port MAX Charging Stations, 150W Universal Multi USB MAX Charging Station, 16 Port MAX Charging Station, 3.5A, Charger, Charging, Fast, laptop charging stations, Max, Multi, Port, Stand, Station, Universal, USB$49.99$29.99
i just started learning react and when i type in my terminal i am getting this error
npm ERR! code ENOENT
npm ERR! syscall lstat
npm ERR! path C:UsersRavindu RukshanAppDataRoamingnpm
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, lstat 'C:Users
Ravindu RukshanAppDataRoamingnpm'
npm ERR! enoent This is related to npm not being able to find a fil
e.
npm ERR! enoent
For those getting errors while tyrna run the app , create new folder in "appdata/roaming" and call it "npm" (O)(O)
Rarely to comment but i did because you deserve it. Thanks
completed 2nd video thank you
So how come I follow these simple steps but get error messages. Saying npm doesn't exist an….
Thanks 😊
Which website is this?
Unable to install react app after two days now….. it's just tiring. I need some help please
MODULE NOT FOUND PROBLEM FACING
Thank you so much, now i can learn React-JS easily
the advantage, to the homeowner, to stocking a cap and swapping it out isn't that it eliminates the need for the service call, it's that it buys time until the tech can make it out, which, in our area is often days.
ERROR FIX
npm ERR! code ENOENT
npm ERR! syscall lstat
npm ERR! path C:UsersuserAppDataRoamingnpm
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, lstat 'C:UsersuserAppDataRoamingnpm'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
In order to fix it you need to create a folder at the directory listed in the error, for me is 'C:UsersuserAppDataRoamingnpm' .
Go to 'C:UsersuserAppDataRoaming' and create a file with the name "npm" then close everything related to it and try again.
I'm have been facing an error for some days now. Kindly assist
PS C:UsersRIK CONSORTIUMOneDriveDesktopreact project> npx create-react-app first-project
npm ERR! code ENOENT
npm ERR! syscall lstat
npm ERR! path C:UsersRIKCONSORTIUMAppDataRoamingnpm
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, 1stat 'C:UsersRIKCONSORTIUMAppDataRoamingnpm'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:UsersRIKCONSORTIUMAppDataLocalnpm-cache_logs2023-07-18T04 49 44_1182-debug-0.log
Hi, i got this error message after the npx create-react-app hello-world, shown below
npm ERR! enoent ENOENT: no such file or directory, lstat 'C:UserschooiAppDataRoamingnpm'
but it is not working
but after writing npx command it's showing me error
thank you so mush
what is the utiity to do this? I have trouble to understand that
is it ok that it takes about 10 minutes to install reactjs with all required packages?
hey should we do this npx-create-react-app every time we try to code ?
Heloo world folder not creating!!
First of all npx is not showing in yello color!? Is there any procedure are their??
bhai voice changer lageyo ho kya
I keep getting this error what to do
"node"' is not recognized as an internal or external command,
operable program or batch file.
I feel so inspired to learn React watching this introductory video and reading all the comments. This community is so positive…❤
I've been running npx but I'm having some errors saying npx is not recognize
lol none of the command is working and it throws error on command npm and npx 😂 please help
If any one under stand this step can you explain me
It is okay to learn react from this series in 2023?… Can anyone guide me on this???