React JS - React Tutorial for Beginners

2024 ж. 17 Мам.
6 115 571 Рет қаралды

Watch the latest version: • React Tutorial for Beg...
React JS Tutorial - Get up & running with React JS: the most popular JavaScript library in the world!
- Want to master React? Get my React mastery course: bit.ly/3l0vWYR
- Subscribe for more videos like this: goo.gl/6PYaGF
Want to learn more from me? Check out my blog and courses:
Courses: codewithmosh.com
Blog: programmingwithmosh.com
Facebook: / programmingwithmosh
Twitter: / moshhamedani
TABLE OF CONTENT
00:00 Introduction
01:14 What is React
05:48 Setting Up the Development Environment
09:27 Your First React App
16:03 Hello World
22:26 Components
24:06 Setting Up the Project
26:15 Your First React Component
31:38 Specifying Children
35:56 Embedding Expressions
40:49 Setting Attributes
46:36 Rendering Classes Dynamically
50:57 Rendering Lists
54:58 Conditional Rendering
1:01:04 Handling Events
1:03:56 Binding Event Handlers
1:08:34 Updating the State
1:10:51 What Happens When State Changes
1:12:58 Passing Event Arguments
1:17:31 Composing Components
1:21:18 Passing Data to Components
1:24:31 Passing Children
1:27:44 Debugging React Apps
1:31:55 Props vs State
1:34:22 Raising and Handling Events
1:39:16 Updating the State
1:43:57 Single Source of Truth
1:47:55 Removing the Local State
1:54:44 Multiple Components in Sync
2:00:39 Lifting the State Up
2:06:18 Stateless Functional Components
2:08:49 Destructuring Arguments
2:10:52 Lifecycle Hooks
2:12:32 Mounting Phase
2:18:09 Updating Phase
2:22:31 Unmounting Phase
#react #webdevelopment #programming

Пікірлер
  • - Want to learn more? Get my complete React mastery course: bit.ly/3l0vWYR - Subscribe for more videos like this: goo.gl/6PYaGF

    @programmingwithmosh@programmingwithmoshАй бұрын
  • I am going to put "Trained by Mosh" on my resume and get all the jobs!

    @NN-gy7xl@NN-gy7xl5 жыл бұрын
    • That's cheating you'd get every job instantly

      @89elmonster@89elmonster5 жыл бұрын
    • I already did that

      @tradewithcpr1464@tradewithcpr14645 жыл бұрын
    • How many jobs you got so far??? I will do the same trained by Mosh

      @yeeli7989@yeeli79895 жыл бұрын
    • Please Mosh kindly help: I am writing a code that finds logical difference between two numbers and then print out the even numbers between the two numbers const myFunction = (x, y) => { // Code here if (x > y) { return (x%2 == 0) } else { return ('This is an Odd number') } } console.log(myFunction(10,2));

      @i-am-oi@i-am-oi5 жыл бұрын
    • @@i-am-oi a little confused by the prompt.... 'finds the logical difference between two numbers', and 'print out the even numbers between the two numbers'.... clarify a little bit, and I should be able to help.

      @taylorbangg22@taylorbangg225 жыл бұрын
  • 2 years ago when I started to learn web development, I randomly came to this React Tutorial and back then I've doubted myself if I can get a job in software development. I almost quit this web development tutorial stuff but then I still believed in myself and now I am a React Developer and Tech lead in my team. thanks mosh!

    @idonthaveaname784@idonthaveaname7842 жыл бұрын
    • wow bro i really wanna be like you

      @shohjaxonkomilov5201@shohjaxonkomilov52012 жыл бұрын
    • @@shohjaxonkomilov5201 Just believe in yourself!!!!!!!!!!!!

      @speedfastman@speedfastman2 жыл бұрын
    • @speedfastman thank youu

      @shohjaxonkomilov5201@shohjaxonkomilov52012 жыл бұрын
    • I am in the same path as your early days that is tensed self doubt. But inspired from your words. Hope this tutorial work for me,😊

      @swagatalakshmipal7711@swagatalakshmipal77112 жыл бұрын
    • @@swagatalakshmipal7711 I am turning 40 in few months :) .. you try to learn or not but the truth is you are always learning something , the question is that the something is what you wanted or its coming to you without your knowledge. And I think, whoever can answer this question can learn many many things irrespective of all barriers/ hurdles

      @learntry9074@learntry90742 жыл бұрын
  • I did struggle a lot to learn React. A lot of time that I wasted. The problem? I did not know the basics of Javascript in first place. You need to walk before you can run. So I took a few very basic books (books, not complex tutorials!) and learned the fundamentals. After I learned the basics of Javascript, learning React became much easier. Edit: For those asking about the books, for the very basics I learned with Javascript In Less than 50 Pages. And to develop my knowledge I learned with Head First Javacript Programming.

    @robertn4996@robertn4996 Жыл бұрын
  • This guy explains react better than the documentations. we are blessed to be living in the age of internet.

    @murugappanm9883@murugappanm98833 жыл бұрын
    • Yes, online learning is the way to go these days, especially for coders! Are you a student or working currently? Would you be interested in job opportunities in software development roles?

      @shivanigaddagimath6105@shivanigaddagimath61053 жыл бұрын
    • Yeah it helps a lot.

      @gopikannan7053@gopikannan70533 жыл бұрын
    • @@shivanigaddagimath6105 do you have any job to offer?

      @gopikannan7053@gopikannan70533 жыл бұрын
    • @@gopikannan7053 yes, we are a web development company and are looking for developers.

      @shivanigaddagimath6105@shivanigaddagimath61053 жыл бұрын
    • @@shivanigaddagimath6105 Any Internships available for college students?

      @logeshwarans9956@logeshwarans99562 жыл бұрын
  • W10 update for VSC 1.38.1 8:30 : file -> preferences -> settings -> text editor -> formatting : format on save

    @lukaszp7827@lukaszp78274 жыл бұрын
    • You're an awesome human being.

      @poloska9471@poloska94714 жыл бұрын
    • This also helps Mac users using the new version of VS code, thanks

      @Luis-rc4pq@Luis-rc4pq4 жыл бұрын
    • Love ya man

      @asim-gandu-phenchod@asim-gandu-phenchod4 жыл бұрын
    • hey thanks man

      @pparab0@pparab04 жыл бұрын
    • Thanks

      @salonigupta1436@salonigupta14363 жыл бұрын
  • This is the fourth React app I've built from a tutorial but the first one where I was actually able to understand what was going on because of how it was all explained in detail. Really excellent style of teaching and much appreciated!

    @simplesimon2960@simplesimon29603 жыл бұрын
  • I had to pause the video to share my thoughts. It's just unbelievable how he explains everything so simply yet so effectively. I was looking for a perfect react video to get me started and I just landed on one..Thanks Mosh

    @shaddygimmz948@shaddygimmz9483 жыл бұрын
  • The comment section of this video is so helpful. Really good to see so many people willing to help out someone else so that they don't go through the trouble they went through

    @fahimimtiaz4532@fahimimtiaz45322 жыл бұрын
  • Dude, I've literally watched 100 videos on this and nothing clicked until I saw this. I LOVE YOU MOSH!

    @luisr1421@luisr14215 жыл бұрын
  • Mosh is by far the most awesome tutor on the entire net. I already took two of his Angular courses and it landed me in a pretty good job. For added difficulty I had concentration difficulties at the time due to serious trauma, so bad I literally couldn't read a page in one sitting. I genuinely felt that I can't carry on with my profession, but Mosh gave it all back to me. Now I'm switching to React, and he's still the only one who can flawlessly explain the entire mess. We have to come up with some super fancy award for this guy.

    @tolvajkergetok@tolvajkergetok4 жыл бұрын
    • Watch 1000+ Tech Videos from My channel talking about Everything in Javascript Here is the playlist for React JS kzhead.info/sun/jbuqlqV8ml9mfnA/bejne.html

      @tkssharma@tkssharma3 жыл бұрын
    • Man I just went through some serious stuff in life last year and this year I can barely focus or read.. I never thought it could be trauma related, I just thought it was normal stress but no matter how many breaks I take and try to go back it's still hard. It literally sucks the life out of you not being able to concentrate and retain information it's like my vision is zoomed in and I can't see the bigger picture. It always leads to frustration in the end. I'm watching this video wondering how far I'll be able to get into it before I lose focus and so far so good I'm glad I read your comment I hope this works for me.

      @yayz_@yayz_3 жыл бұрын
    • @@yayz_ More power to you. Everyone gets out of their problems. Good luck man

      @Aman-lv2sz@Aman-lv2sz3 жыл бұрын
    • @@yayz_ sometimes having a foggy mind could be due to a lack of important vitamins like Vitamin D. Start taking that along with a glass of pomegranate juice every day, because the latter is great for the mind, especially the memory part of your brain.

      @dragonballsuper1519@dragonballsuper15193 жыл бұрын
    • @@dragonballsuper1519 Thanks for the advice, I will definitely try that out !

      @yayz_@yayz_3 жыл бұрын
  • My god, cannot believe that you provide this for free, really really appreciate it !!!

    @evelynbrandonsmusicchannel9235@evelynbrandonsmusicchannel92353 жыл бұрын
  • 43:12 If you, like me, installed the latest version of bootstrap (v5 at the time of writing this) the "badge-primary" won't work. In bootstrap v5 it's changed to "bg-primary" and "bg-secondary" etc instead, so try className="badge bg-primary m-2" for it to function correctly!

    @Dherlandsson@Dherlandsson2 жыл бұрын
    • upvote. wasted close to 45 mins to find out where I did wrong then I saw I installed latest bootstrap which is v5.0.

      @nilmour@nilmour2 жыл бұрын
    • Thank you @Davve1001

      @abhishekr5910@abhishekr59102 жыл бұрын
    • Aswell for the "badge-pill" , you can use "rounded-pill" instead !

      @ayoubrais5534@ayoubrais55342 жыл бұрын
    • Wow, such a great help! I was super confused as to what I did wrong. Thanks!

      @Mackenzie865@Mackenzie8652 жыл бұрын
    • Thank you! Almost wasted a ton of time with this until I happened to see your comment.

      @joeasian2@joeasian22 жыл бұрын
  • React is really elegant in the way it is designed and compiled. Kudos to the facebook team, and of course Mosh who taught us!

    @imranq9241@imranq92414 жыл бұрын
  • I’ve not even finished watching the video and already you have mastered how to give me a fluffy feeling that it’s gonna be interesting and fun. I think I’ll enjoy this.

    @adeoke3086@adeoke30863 жыл бұрын
  • Got an internship interview and they asked that I made a React site in 2 weeks, to see how my code is and such. This guy literally saved me lmfao

    @dionemartins0212@dionemartins02122 жыл бұрын
    • O shit man this way of interview would be really relaxed never seen before.

      @OFaruk58@OFaruk582 жыл бұрын
  • I appreciate how mosh makes things looks so much easier with great examples, and doesn't skip concepts like many other youtubers ... ❤️

    @smiling_assasin@smiling_assasin11 ай бұрын
    • Totally agree, the same way a great athlete makes hard things look easy to do, a great teacher makes coding looks easy too, even coding beeing hard most of the times =)

      @tiagobordin6580@tiagobordin65806 ай бұрын
  • This is probably the best tutorial on React available on YT

    @swetabjahazra8050@swetabjahazra80504 жыл бұрын
    • Is this video sufficient to beggining to learn react or i should to follow the full course of 10 hours ?

      @mohammedlaslaa9549@mohammedlaslaa95494 жыл бұрын
    • Mohammed Laslaa take the 10 hours course, and then start building a project and then come back here if you are stuck.

      @omar_mtl@omar_mtl4 жыл бұрын
    • @@mohammedlaslaa9549 This is a good introduction and overview to React. Especially if you're like me and have never used it before. However, it's a crash course and so does not go heavily in-depth. I recommend to take this crash course first to get a feel for React and how it works. As well as its capabilities. But then do the full course afterwards to fill in the gaps missed in this crash course. Another good course to look at is the 5-hour course on freecodecamp. :-)

      @guitarman813@guitarman8134 жыл бұрын
    • Thanks 😊

      @mohammedlaslaa9549@mohammedlaslaa95494 жыл бұрын
  • Not all heroes wear capes. Thank you so much, Mosh. This was incredible.

    @cartersteinhoff1994@cartersteinhoff19945 жыл бұрын
    • carter steinhoff I wear a cape when I plan to expose myself in front of the Safeway.

      @johnmadsen37@johnmadsen375 жыл бұрын
    • we are being led by saitama

      @khateebanwer7466@khateebanwer74664 жыл бұрын
  • Hadn't taken a course with you this is amazing the clear way you explain all the concepts. Amazing content, thanks for it!

    @angyloh@angyloh2 жыл бұрын
  • 8:55 in version 1.59.0 of VS Code you go to Settings, then to Text Editor, then to Formatting and then click "Format on Save".

    @jonasking3670@jonasking36702 жыл бұрын
    • You deserve more likes!

      @aldin3994@aldin39942 жыл бұрын
    • Thank you so much, was struggling with this since 15 minutes!

      @jvyas6998@jvyas69982 жыл бұрын
  • The guy is good. Clear. Teaching qualities you've got. And you are smart. Don't change am following

    @Forlloma@Forlloma5 жыл бұрын
    • Watch 1000+ Tech Videos from My channel talking about Everything in Javascript Here is the playlist for React JS kzhead.info/sun/jbuqlqV8ml9mfnA/bejne.html

      @tkssharma@tkssharma3 жыл бұрын
  • Great course! Did this with the most up to date node packages and used Bulma instead of Bootstrap and everything worked perfectly. So as of 2018-08-29 everything in the tutorial is up to date with the most current versions.

    @Nafana@Nafana5 жыл бұрын
    • Style worked after adding this code in my index.js import "bootstrap/dist/css/bootstrap.css";

      @rohitmalakar@rohitmalakar5 жыл бұрын
  • Best React tutorial on youtube. I''ve been watching Mosh tutorials for a long time ago and the conclusion is pretty clear: he's a great teacher

    @livu69@livu69 Жыл бұрын
  • you are good at explaining reactjs i've been watching this tutorial for an hour now and i didn't feel the time passing

    @elhafedelyazidi4681@elhafedelyazidi46812 жыл бұрын
  • This is an awesome course. You made it seem so easy to understand.

    @caroldanvers265@caroldanvers2655 жыл бұрын
  • Thank you Mosh! This is the best React Tutorial I have came across. so simple yet cleared all the necessary concepts.

    @muhammadadil4885@muhammadadil48853 жыл бұрын
  • I've been following this tutorial from beginning to end. The best React Tutorial ever!

    @yichenzhang1790@yichenzhang17903 жыл бұрын
  • Thank you so much for this course. I was trying to learn React through an online course but was getting so confused. Your style is very easy to follow and I have gained a stronger grasp on the material.

    @amaliabryant7341@amaliabryant73413 жыл бұрын
    • I know the basics of JS , OOP in JS and ES6 hacks. I was wondering whether a full fledged react course with projects would be suitable or learning react through this video and then search for projects would be ideal. Can someone give me a feedback ?

      @rishabhchopra883@rishabhchopra8832 жыл бұрын
    • @@rishabhchopra883 I think this video is enough and going on your own and doing projects is the best way if you are comfortable with it, since it forces you to think however that depends on how comfortable you are with the prerequisites to react so if you are just starting out courses might serve quite well and his teaching style is so good, I might give them a try myself

      @darshandev1754@darshandev17542 жыл бұрын
    • @@darshandev1754 hey bro do you have any idea about mosh's java course. are they worth money?

      @ak332@ak3322 жыл бұрын
    • @@ak332 sorry I haven't tried them so can't say about it

      @darshandev1754@darshandev17542 жыл бұрын
    • @@darshandev1754 hey is this course updated? Because in his website it says its updated in jan 2020 so should i buy this course??

      @sanyamjain4777@sanyamjain47772 жыл бұрын
  • At last the long awaited course 🙂 Thanks Mosh Your courses are always extra ordinary.

    @AshrafulIslam-pm2mw@AshrafulIslam-pm2mw5 жыл бұрын
  • 8:40 On windows, go to file -> Preferences -> Settings Edit: Then, at the search bar at the top, search for "format on save". Tick the small box to enable it :) Then, at setting, search for "Default format" At "Editor: Default formater", select from null to prettier-vscode for it to work :)

    @destinyjames6117@destinyjames61173 жыл бұрын
    • How to create react app on windows?

      @joandianamilton1074@joandianamilton10743 жыл бұрын
    • @@joandianamilton1074 I'm using node.js to use npm, and then from npm install create-react-package, and then go to directory i want to create react package from node.js command prompt, type create-react-app my-react-app-title

      @destinyjames6117@destinyjames61173 жыл бұрын
    • @@destinyjames6117 if I type npx create-react-app my-app, it's throwing a error saying Error: EPERM: operation not permitted, mkdir 'C:\Users\joan' Command not found: create-react-app

      @joandianamilton1074@joandianamilton10743 жыл бұрын
    • @@joandianamilton1074 Try "npm i -g create-react-app" This will install create-react-app for use If not, try this: "npm i create-react-app"

      @destinyjames6117@destinyjames61173 жыл бұрын
    • Thank you so much James😍

      @joandianamilton1074@joandianamilton10743 жыл бұрын
  • If anyone is having trouble installing and using create-react-app (because the one he is using is very outdated), here are the commands to install the latest version and create a new application: npm init npm install create-react-app (don't use -g) npx create-react-app react-app cd react-app npm start

    @andrewz100@andrewz1002 жыл бұрын
    • yes correct, but you could use yarn start as well because create-react-app suggests that only.

      @aviral1841@aviral18412 жыл бұрын
    • Thank you i was struggling with this

      @shivam7929@shivam79292 жыл бұрын
    • Thanks for this

      @anuvapandya8287@anuvapandya82872 жыл бұрын
    • Thanks man

      @armanmishra3487@armanmishra34872 жыл бұрын
    • Why no -g? Just wondering..

      @LifeSurf123@LifeSurf1232 жыл бұрын
  • I'm so glad I found you, these tutorials are actually soooo good, and I'm actually learning rather than just copying. Thanks Mosh!

    @HookPhire@HookPhire5 ай бұрын
  • I really liked your Tutorial, Specially the way you cover every single details, like your keyboard shortcut keys, why you don't mentioned curly brace while importing React (As it is a default export) and why you install extensions and how to its work! Good Job Man!

    @9607ankit@9607ankit4 жыл бұрын
    • Watch 1000+ Tech Videos from My channel talking about Everything in Javascript Here is the playlist for React JS kzhead.info/sun/jbuqlqV8ml9mfnA/bejne.html

      @tkssharma@tkssharma3 жыл бұрын
    • yes I liked the way to describe the things in very detailed manner

      @singhaditya3295@singhaditya32953 жыл бұрын
    • React/Python Lover Come Here! Let's learn and practice together : discord.gg/vwgACw

      @faisalfida9929@faisalfida99293 жыл бұрын
    • Hi Ankit! Are you looking our for job opportunities in software development currently? Please let me know if you are.

      @shivanigaddagimath6105@shivanigaddagimath61053 жыл бұрын
    • @@singhaditya3295 Hi Aditya! Are you studying or working currently? Would you be interested in internships/jobs in software development?

      @shivanigaddagimath6105@shivanigaddagimath61053 жыл бұрын
  • High quality content as usual. Thanks for sharing.

    @e4r281@e4r2815 жыл бұрын
  • This was an amazing tutorial that was super helpful! Thank you so much for putting together such a quality educational resource. Even without extensive JS experience, I was able to understand what you were talking about and put together something exciting.

    @toggles4565@toggles45652 жыл бұрын
  • Despite this tutorial being outdated by 4 years , it's still one of the best React tutorials out there

    @buddimalliyanapathirana1767@buddimalliyanapathirana17672 жыл бұрын
    • How much has changed? I never used React before. Does it still use classes with state and render methods?

      @pranavrao6370@pranavrao6370 Жыл бұрын
    • @@pranavrao6370 I see one difference now, with the introduction of Hooks the whole app is contained within a function instead of a class.

      @Johnsonwingus@Johnsonwingus Жыл бұрын
  • Best course on React! Go ahead and finish it. Mosh is one of the best trainer on YT!! Thanks

    @iamankitmaheshwari@iamankitmaheshwari3 жыл бұрын
  • Brilliant tutorial. I've done a couple of different React tutorials, and this is by far the best I have come across. I wasn't expecting that considering all of the other tutorials I have seen so far have been on paid subscriptions! Thank you very much, I feel like I have a decent understanding of React now, enough to get me going on a project!

    @HotChilli99@HotChilli994 жыл бұрын
    • is it better than the freecodecamp React Native tutorial on KZhead?

      @jesseguerrero8203@jesseguerrero82034 жыл бұрын
    • @@jesseguerrero8203 yeah much better....i have done both

      @sayandeepghosh2911@sayandeepghosh29114 жыл бұрын
  • Thank you - as always!! You're saving this novice dev EVERY SINGLE DAY.

    @shlee4210@shlee42102 жыл бұрын
  • Love your videos Mosh. They are so easy to understand. Well done

    @andrewdolan4261@andrewdolan4261 Жыл бұрын
  • Mosh, you're a diamond at helping me catch up when i need to. Never stop, sensai!

    @lukeschofield4213@lukeschofield42135 жыл бұрын
  • Man, you're doing a really good job. And I really like the way you each time pronounce "Save the changeeeeees".

    @MikayilAbdullayev@MikayilAbdullayev5 жыл бұрын
  • on 20:00 import ReactDOM from 'react-dom'; root.render(element) those had been removed from version 18, instead you will use below import {createRoot} from 'react-dom/client' const root=createRoot(document.getElementById('root')) root.render(element)

    @elinordeniz@elinordeniz Жыл бұрын
  • Dude your so smart man, you literally know everything and also having watched your videos, I have learnt so much in such a less time. Thank you so much Mosh❤️

    @apps0319@apps03193 жыл бұрын
  • You are just great Mosh! Whenever i have to learn something i directly go to your tutorials. You are all-rounder guy. Your tutorials are just awesome and your way of teaching is just incredible!!! In the video of approx 2hrs i can get my half of the things done about that particular topic. These 2hrs videos are equal to many books or i would say there is no one like you. So thank you so much for all of this knowledge!! Keep going ahead and keep sharing your knowledge like this!!

    @reenagarg7996@reenagarg79964 жыл бұрын
    • React/Python Lover Come Here! Let's learn and practice together : discord.gg/vwgACw

      @faisalfida9929@faisalfida99293 жыл бұрын
  • This course is amazing and you are an awesome teacher!😍Congrats:)

    @migueldomingos4570@migueldomingos45704 жыл бұрын
  • Thanks Mosh - a clear and productive video which I followed diligently and created my first React app. I've enrolled in the course - looking forward to getting started.

    @squeezy99@squeezy99 Жыл бұрын
  • Wow! Mosh! i'm just two minute and few seconds into your react crash course and I'm already giving a big shout out to the best react instructor ever on youtube. #CALEB from Lagos,Nigeria.

    @odedejikehinde6514@odedejikehinde6514 Жыл бұрын
  • Absolutely brilliant. Clear, concise, and to the point. Just purchased your Mastering React course. Hope to learn a lot! Keep up the amazing work!

    @DivyeshHarit@DivyeshHarit5 жыл бұрын
  • Bro I love you. Thats what Ive been searching for the last hours

    @sinanalkis6229@sinanalkis62293 жыл бұрын
  • I supplement your videos along with my bootcamp course, just have to say you're AWESOME!

    @tatumtots6704@tatumtots67043 жыл бұрын
  • this tutorial was much better than others I've used on the internet, thank you

    @patrickhu8197@patrickhu81972 жыл бұрын
  • 1:53:52 in handleIncrement(counter) you can simply update the value of counter directly since it is a pointer to the counter in the state, then just setState(counters) handleIncrement = (counter) => { counter.value++; const counters = this.state.counters; this.setState({ counters}); };

    @Lokk09@Lokk093 жыл бұрын
    • thanks, I couldn't understand his code at that point, therefor I came into the comment section with the idea that may somebody have easy code and found you

      @abdulhayan2378@abdulhayan23782 жыл бұрын
  • I have passed many courses learning react and this one is the best with High-quality contents. Thank you, Mr. Mosh "Dastet dard nakone"

    @farbodjamali@farbodjamali5 жыл бұрын
    • Is this video sufficient to beggining to learn react or i should to follow the full course of 10 hours ?

      @mohammedlaslaa9549@mohammedlaslaa95494 жыл бұрын
  • Some tips from my side where you could face some issues- 1. If you are watching this tutorial after April 2022 you should use react version 17 because version 18 is fairly new and it would be difficult to follow the tutorial. 2. Components names in react should always start from capital letters.

    @niketbahety2009@niketbahety20092 жыл бұрын
    • Thank you ...

      @danielidonchangeambecauseo7889@danielidonchangeambecauseo7889 Жыл бұрын
    • However I will need to write you a private message I need a guard

      @danielidonchangeambecauseo7889@danielidonchangeambecauseo7889 Жыл бұрын
    • Can you explain it more coz I am facing difficulties in creating react app

      @tasawwurmehnaz1214@tasawwurmehnaz1214 Жыл бұрын
    • thanks bro

      @rizkysiregar1-fj3hq@rizkysiregar1-fj3hq5 ай бұрын
  • Very clear and consistent course! Did have no single question. Thank you!

    @MisterTrayser@MisterTrayser Жыл бұрын
  • Dude! Solid training. The best I've seen. Highly recommend.

    @ryanfranklin8340@ryanfranklin83405 жыл бұрын
  • Guys he updated his full course, there's even more awesomeness in it I strongly recommend it :) The best thing about the course is I didn't only get much better at react, but also lot of great programming techniques, shortcuts, and thinking about how to put together an app. To mosh - thanks a lot for updating the course man, and upping my programming knowledge in general. I'm on a subscription even though I originally just needed the react course in to support you. But after I cover the rest of your updates to the react course I will start looking at the other ones I'm interested in too since i got your subscription anyway :P

    @krantinebhwani6125@krantinebhwani61255 жыл бұрын
    • Thanks that's fine, I reworded a little to make it more clear for other people reading lol. I just wanted to notify others that your course is EVEN better now and how much i gained from it beyond learning react.

      @krantinebhwani6125@krantinebhwani61255 жыл бұрын
  • None man in this world can teach the way this man does. The best teacher i have ever seen in my entire life of web programming.

    @khasmeenusman3931@khasmeenusman39313 жыл бұрын
  • The most lucid, easy to understand react tutorial on KZhead, thanks man!

    @abhishaiwinston9794@abhishaiwinston97942 жыл бұрын
  • I have to admit that I did train a lot of people in programming. As an IT architect I had to learn a lot of new technologies and pass it to other people in my day to day work. The way how you teach is very good; balanced. You explain all concepts clearly at the same time avoiding throwing too much on the listener. It’s a hard Art to master. Respect.

    @enderksenobojca3775@enderksenobojca37754 жыл бұрын
    • Please if you still exit I need you to save me by guiding me on how to use this skills to

      @danielidonchangeambecauseo7889@danielidonchangeambecauseo7889 Жыл бұрын
  • Brilliant brilliant tutorial. The tips in between are priceless!

    @pranavvij@pranavvij4 жыл бұрын
    • Watch 1000+ Tech Videos from My channel talking about Everything in Javascript Here is the playlist for React JS kzhead.info/sun/jbuqlqV8ml9mfnA/bejne.html

      @tkssharma@tkssharma3 жыл бұрын
  • How can you be so good??? Like literally with such a good explanation and clarity. U made this so simple. Thanks mosh

    @pujadey355@pujadey3554 ай бұрын
  • this was such an awesome tutorial. react was a blocker i frequently had working on my projects. i reviewed the video twice, just watching, not "copying" into my own project and then took on a new project and knocked the front end out within an hour. thank you sir, excellent tutorial.

    @evan_n6136@evan_n61363 жыл бұрын
    • did u use his version of create-react-app or just used npx to make the app?

      @alenjose3903@alenjose39033 жыл бұрын
    • @@alenjose3903 npx

      @evan_n6136@evan_n61363 жыл бұрын
  • #keyTakeAways 39:00 A new syntax for me --> Gets count property of state and assigns it to new count constant. 44:22 Applying your own styles in jsx 47:22 Conditional styling 51:51 Cant use loops in jsx elements. Use map(), filter() functions 56:00 Two ways of conditional rendering 1:06:30 Changing state variable arrow functions and setState() 1:11:13 To pass an element to onClick event don't use an explicit intermediate handler function. Use this intermediate function inside the onClick() 1:26:41 render variables in html in components

    @mcan543@mcan5433 жыл бұрын
    • I am getting an error "product' is noy defined after doing that change

      @MrJeffersonDias@MrJeffersonDias Жыл бұрын
  • Some error fixes that might be helpful -- 1:23:25 If you get "TypeError: Cannot read property 'value' of undefined" after adding this.props.value, try removing the Counter constructor in counter.jsx 1:40:07 If your counterId is undefined, add prop "id={counter.id}" to your Counter component in counters.jsx 2:04:13 Change your App.js to match the other classes ie. from "function App()" to class "App extends Component" ...and add "render()" to return your React.Fragment

    @vietgurlx3@vietgurlx33 жыл бұрын
    • thank you very much

      @salvadorscafati3190@salvadorscafati31903 жыл бұрын
    • this thing should be pinned by mosh

      @Felix-dh9tl@Felix-dh9tl2 жыл бұрын
    • bro what do you mean by removing the Counter constructor? Sorry, I`m new to programming

      @raulalexpopa7673@raulalexpopa7673 Жыл бұрын
    • true

      @the_pykid@the_pykid Жыл бұрын
    • ur fix for 1:40:07 worked great for me ty!

      @cbentin12@cbentin12 Жыл бұрын
  • watched the tutorial without practicing, and it was so amazing, finally decided to begin practically at around halfway, ran into various problems trying to run the old react/bootstrap versions from this tutorial (react 1.5.2 and bootstrap 3 or 4, I think?) and used the latest (as of this comment) versions instead (react 18.2.0 and bootstrap 5). ran into some inconsistencies, but after fixing those problems, I am back on track! the tutorial is very well done in such a way that if I run into problems due to the version differences, I still have an idea on how to go about fixing it. Thank you!

    @bhavyakukkar@bhavyakukkar Жыл бұрын
    • I second what you saying

      @nkosanamoyo3130@nkosanamoyo3130 Жыл бұрын
  • Absolutely clearly explained along with explaining how to avoid easy mistakes

    @cindymccaine7500@cindymccaine7500 Жыл бұрын
  • Fantastic library, cool ide and Amazing tutorial ! Thanks for such an in depth video... i will definitely consider getting the full version once my brain finishes processing this one. Kudos !

    @crabsynth3480@crabsynth34805 жыл бұрын
    • @@programmingwithmosh will buy the course anyways :)

      @its_maalik@its_maalik5 жыл бұрын
  • How to fix: "npm ERR! missing script: start" when trying to run. 1. Uninstall the global version of the create-react app : Write in your console: uninstall -g create-react-app 2. Delete the folder react-app (if this is the name of your react project) 3. Recreate your new project locally Write in your console: npx create-react-app react-app 4. go into your react-app folder and type npm start .... Have fun This error is happening because create-react-app is not allowed to be used globally for some time

    @cristiandumitriu1245@cristiandumitriu12454 жыл бұрын
    • 1. the line should have npm infront of it: npm uninstall -g create-react-app

      @Slurbisaur@Slurbisaur4 жыл бұрын
    • @@Slurbisaur In my case I also need to delete the path.. so I use this command which create-react-app | sudo xargs rm

      @giladfuchs2377@giladfuchs23774 жыл бұрын
    • Thanks alot Christian! Couldnt get it to work properly

      @michaelhofby@michaelhofby3 жыл бұрын
    • thank you!

      @a7med4973@a7med49733 жыл бұрын
    • React/Python Lover Come Here! Let's learn and practice together : discord.gg/vwgACw

      @faisalfida9929@faisalfida99293 жыл бұрын
  • First port of call for anything programming related is a tutorial by Mosh. This tutorial could be updated though - as I found a few issues but managed to sort it out with a struggle.

    @jennaadams3899@jennaadams38993 жыл бұрын
  • This is one of the best tutorials that I've seen. Easy to understand and indepth explanation, overall interesting to watch. Thank you for sharing your knowledge 🙌

    @SuperAvalonn@SuperAvalonn Жыл бұрын
    • still working 4 years later or it's outdated?

      @fabriziotechera5265@fabriziotechera5265 Жыл бұрын
  • The absolute worth of every minute Mosh!!! It takes you to the beginner level to Intermediate level. Thanks a lot for the course... Keep up the good work...

    @hemasaiprakashchowta8612@hemasaiprakashchowta86125 жыл бұрын
    • Hey! Are you working currently? Are you looking for jobs in software development roles?

      @shivanigaddagimath6105@shivanigaddagimath61053 жыл бұрын
  • I can say now, Learning react was fun and made super easy by you. Thank you for teaching us !

    @amardeepagrawal6188@amardeepagrawal61883 жыл бұрын
    • kzhead.info/sun/adB7Z8pupYCJaY0/bejne.html..

      @sit73shekhargite55@sit73shekhargite553 жыл бұрын
    • Hi Amardeep! Are you studying or working currently? Would you be interested in opportunities for software developer roles?

      @shivanigaddagimath6105@shivanigaddagimath61053 жыл бұрын
  • Amazing course. Thank you Mosh for putting this up on YT.

    @suryac850@suryac8502 жыл бұрын
  • Honestly, this Course is wow.. Thanks so much Mosh. God bless you.

    @AOAinteriordecors@AOAinteriordecors Жыл бұрын
  • following this course was more exciting than a thriller. Never seen such clarity!

    @donato_RH@donato_RH4 жыл бұрын
    • I got you..

      @LeoMaverick@LeoMaverick4 жыл бұрын
    • I thought it was helpful, but I wish he hadn't back-tracked so much. If this had been my very first introduction to React, I think I would have been quite confused each time he does something just to undo it, or to do it a different way.

      @Kayne1b@Kayne1b4 жыл бұрын
    • Watch 1000+ Tech Videos from My channel talking about Everything in Javascript Here is the playlist for React JS kzhead.info/sun/jbuqlqV8ml9mfnA/bejne.html

      @tkssharma@tkssharma3 жыл бұрын
  • Great video, Mosh! Wish I found your courses years ago. This was very well organized so I'll be buying the whole course to add React to my resume :)

    @naztronaut@naztronaut4 жыл бұрын
  • This class is exceptional! Wish I could learn every technology like this. Thank you very much!

    @LucasSantos-wp7ji@LucasSantos-wp7ji2 жыл бұрын
    • You can let's train our mind

      @danielidonchangeambecauseo7889@danielidonchangeambecauseo7889 Жыл бұрын
  • Another masterpiece tutorial!!! Thanks Mosh.

    @PavanSibal@PavanSibal3 жыл бұрын
  • Mosh's teaching is pure and clear as his head. thank you. I learn a lot.

    @nilupulheshan27@nilupulheshan274 жыл бұрын
    • Hi Nilupul! Are you studying or working currently? Would you be interested in job opportunities in software dev?

      @shivanigaddagimath6105@shivanigaddagimath61053 жыл бұрын
    • ​@@shivanigaddagimath6105 Yes nice to hear, Can you give me more details. I'm currently working in startupcompany.

      @nilupulheshan27@nilupulheshan273 жыл бұрын
    • @@nilupulheshan27 Thanks for your response! Can we please connect via LinkedIn for more details? I have sent you a request on LinkedIn. Please accept.

      @shivanigaddagimath6105@shivanigaddagimath61053 жыл бұрын
  • good tutorial, but for anyone trying to follow and code along this is easy to miss: at 1:27:30 you say "we are going to delete the code that we wrote in this lecture" and delete the console log statement and child element of counter, but NOT the bit you also wrote where you assign the id property in props to counter.id. ( id={counter.id} ). this is really important to leave in as it will be referenced as the event argument of the delete button event handler

    @mishabruml@mishabruml5 жыл бұрын
    • man you are the boss! I backtracked 3 times to see what went wrong before finding this comment! :D

      @chrisyang3130@chrisyang31305 жыл бұрын
    • You just made my day!

      @FromAtoO@FromAtoO5 жыл бұрын
    • Yeah what a pain, he says at a point in time that id is a special attribute, but nowhere states that it should be declared explicitely in Counters.render() ... so I ended up having to write: that's sooo odd and verbose....

      @mathieuclerte5252@mathieuclerte52525 жыл бұрын
    • Thank you soo much for this... couldn't find what a I doing wrong.

      @sumeetwork@sumeetwork5 жыл бұрын
    • well spotted mishabruml, - now it's working...

      @msg2clash@msg2clash5 жыл бұрын
  • This is the best React course that I found. Thanks!

    @vishavbangotra5405@vishavbangotra54053 жыл бұрын
  • Thank you very much for helping us learn the basics of React very easily and comfortably!

    @chingizpro@chingizpro3 жыл бұрын
  • your music sounds very calming, I always feel like I'm on a flight. great tutorials. Thanks a lot!!

    @shivamswarnkar6798@shivamswarnkar67984 жыл бұрын
  • Wow, I love Mosh, he is one amazing teacher, i have learned Angular 60ish minute video(2 years ago and that helped me to become an Angular js expert now). Have learned Modern JS concepts and amazing React Hands on introduction from him. Such a great work Mosh! And such a big help to dev like us. Thank You So much :)

    @aarcheeecya@aarcheeecya4 жыл бұрын
    • > become an Angular js expert now [citation needed]

      @theyruinedyoutubeagain@theyruinedyoutubeagain4 жыл бұрын
  • Mosh, You are my favorite teacher, you are the best!! keep up the great work.

    @karolinaszulczyk4921@karolinaszulczyk49213 жыл бұрын
  • Thank you so much for explaining React JS to newcomers in such a simple and beautiful way. This tutorial is very useful for beginners.

    @Webtricker@Webtricker2 жыл бұрын
  • TABLE OF CONTENT 00:00 Introduction 01:14 What is React 05:48 Setting Up the Development Environment 09:27 Your First React App 16:03 Hello World 22:26 Components 24:06 Setting Up the Project 26:15 Your First React Component 31:38 Specifying Children 35:56 Embedding Expressions 40:49 Setting Attributes 46:36 Rendering Classes Dynamically 50:57 Rendering Lists 54:58 Conditional Rendering 1:01:04 Handling Events 1:03:56 Binding Event Handlers 1:08:34 Updating the State 1:10:51 What Happens When State Changes 1:12:58 Passing Event Arguments 1:17:31 Composing Components 1:21:18 Passing Data to Components 1:24:31 Passing Children 1:27:44 Debugging React Apps 1:31:55 Props vs State 1:34:22 Raising and Handling Events 1:39:16 Updating the State 1:43:57 Single Source of Truth 1:47:55 Removing the Local State 1:54:44 Multiple Components in Sync 2:00:39 Lifting the State Up 2:06:18 Stateless Functional Components 2:08:49 Destructuring Arguments 2:10:52 Lifecycle Hooks 2:12:32 Mounting Phase 2:18:09 Updating Phase 2:22:31 Unmounting Phase

    @thefthesm@thefthesm4 жыл бұрын
    • WOW

      @mgullumgullu1855@mgullumgullu18553 жыл бұрын
    • React/Python Lover Come Here! Let's learn and practice together : discord.gg/vwgACw

      @faisalfida9929@faisalfida99293 жыл бұрын
    • @Nobel Nazrul lmao

      @okandme@okandme3 жыл бұрын
    • in desc srry

      @gully40@gully402 жыл бұрын
    • @@gully40 mad?

      @JermaineMorgan@JermaineMorgan Жыл бұрын
  • Fantastic tutorial. Thank you for this. Also... Drinking game: take a shot every time he says "save the changes."

    @dudebroepicgamer4847@dudebroepicgamer48474 жыл бұрын
    • or every time he says "beautiful"

      @apgnisehs3536@apgnisehs35364 жыл бұрын
    • or just type: true && "hi" and you get hi Ba-dum-tss!

      @twisterrjl@twisterrjl4 жыл бұрын
    • "Back to the browser"

      @choi-r7108@choi-r71084 жыл бұрын
    • "Lemme show you..."

      @guitarman813@guitarman8133 жыл бұрын
    • Thank you, you have helped me hit the Ballmer Peak.

      @genie365@genie3653 жыл бұрын
  • This is a very clear tutorial, thanks.

    @janjapsa6518@janjapsa65183 жыл бұрын
  • I recently switched my career from Data Analysis/Science to Full stack web development. As a result, I needed to learn React JS, I have looked up a lot of online videos on this topic, although they were helpful, but I must confess this course by Mosh is second to none. You deserve an award! God bless you if you believe.

    @leochuks1@leochuks1 Жыл бұрын
    • Hello Leonard, May I know how did you switched career to Web development since the experience is on other domain?

      @sneharamar9664@sneharamar9664 Жыл бұрын
  • Appreciated the highly recommend React.js video. I was searching lots of react.js video on KZhead getting the pure clean concept but I din't. Finally from this video I gained every information about react that helps to me learning real React.js concept. Thanks a lot for such an excellent video. This react tutorial is ever best among all other. I am watching from Frankfurt university of applied sciences, Frankfurt, Germany.

    @ExploringWorld100@ExploringWorld1004 жыл бұрын
    • Watch 1000+ Tech Videos from My channel talking about Everything in Javascript Here is the playlist for React JS kzhead.info/sun/jbuqlqV8ml9mfnA/bejne.html

      @tkssharma@tkssharma3 жыл бұрын
    • React/Python Lover Come Here! Let's learn and practice together : discord.gg/vwgACw

      @faisalfida9929@faisalfida99293 жыл бұрын
  • This guy has such quality lessons, I'm so gonna buy the full course.

    @andreyivanov6239@andreyivanov62394 жыл бұрын
    • kzhead.info/sun/adB7Z8pupYCJaY0/bejne.html. ..

      @sit73shekhargite55@sit73shekhargite553 жыл бұрын
    • Im thinking of buying it too and i was wondering if its up to date. Can you please give me a feeback about the course

      @asdomain4503@asdomain45032 жыл бұрын
  • Brilliant course. Thank you for this course Mosh. Not only did you explain the concepts precisely, but with the practical it was total learning with hands on.

    @mayurd23@mayurd23 Жыл бұрын
    • For more enquiries reach out⬆️🆙.

      @Avvaball__my_Teleqram_id@Avvaball__my_Teleqram_id Жыл бұрын
  • I came here to get my feet wet with react thinking I knew JS and I am just blown away by the amount of stuff I've picked up about writing JS expressions and I'm not even half way though! my mind is melting. Thanks Mosh!

    @freedtmg16@freedtmg162 жыл бұрын
  • hi mosh, your way of teaching is amazing... plz make a new tutorial on react again, because a lot new features have released now ...like use memo hooks, use callbacks etc

    @noorb374@noorb374 Жыл бұрын
  • I was going through the React course on Udemy and honestly I found it quite fast paced and I couldn't follow it properly. Now after watching this Tutorial, I have much more clarity on these concepts. Amazing the way you explain things!

    @itishdhiman3987@itishdhiman39873 жыл бұрын
    • Hi Itish! Are you a student or working currently? Would you be interested in software development roles?

      @shivanigaddagimath6105@shivanigaddagimath61053 жыл бұрын
    • Hey have you taken this course? If yes is it updated or old i . Asking because on the website it says that its last updated in 2020 jan so should i purchase it or not?

      @sanyamjain4777@sanyamjain47772 жыл бұрын
  • im learning from COLOMBIA i like the way you teach, keep the good energy!!

    @manuel-wg3gr@manuel-wg3gr3 жыл бұрын
KZhead