Learn React In 30 Minutes
Вставка
- Опубліковано 21 жов 2019
- 🚨 IMPORTANT:
Full React Course: courses.webdevsimplified.com/...
In this video I will be covering all of the basics of React in only 30 minutes. We will cover create-react-app, components, state, props, rendering, event handling, and so much more. By the end of this video you will have a full understanding of the basics of React, but if you want to take your React knowledge to the next level checkout my full React course linked above for the best React learning experience on the web.
📚 Materials/References:
How To Install Node.js: • Your First Node.js Web...
Destructoring Video: • Why Is Array/Object De...
GitHub Code: github.com/WebDevSimplified/L...
🧠 Concepts Covered:
- React function components
- React hooks
- State management in React
- Prop drilling
- How to use create-react-app
🌎 Find Me Here:
My Courses: courses.webdevsimplified.com
Patreon: / webdevsimplified
Twitter: / devsimplified
Discord: / discord
GitHub: github.com/WebDevSimplified
CodePen: codepen.io/WebDevSimplified
#Reactjs #WDS #JavaScript
Make sure to checkout my full React course for more in depth explanations and projects with React. It is the best content I have ever created. courses.webdevsimplified.com/learn-react-today
How often do you send out emails to your newsletter distribution?
In India, it is 4000+ rupees 😭
Nice one, practical and hands on.
Take a look at this too --
ua-cam.com/video/-3G0LZlbUis/v-deo.html
Simplified, very basic and from the ground up,
Thank you so much for this crash course Kyle, I know the basics and took an udemy older course and the ammount of info you put in 27minutes is unreal. I would only recommend adjusting the variables names, for a beginner it must be incredibly confusing hearing and writing everything as "todos/todo", other than that well done my friend, after I get my 1st react dev job I will probably buy your course! :)
Thx for the Video!
Thank you, for taking the time todo this
Underrated comment
I heared todo like 2000 times
haha
It took me a little while to appreciate how good this comment is.
@@bennysmith4557 what you wanna do is To do the Todo do doing
so many *Todo* that i don't understand what todo and what not todo
"cries in todo"
create a todo item of cry
Are you sure crying is the right thing todo
glad im not the only one Todo that
@@FaithFrog same i dont even want to learn it anymore
😂
QUICK TIP: Make sure your playback is at least 1.5 times speed, if you want to become fluent in Todo language.
lmao
Lol
i thought at first i will attempt this, but after few seconds of figuring out how big every directory is, i thought i rather wont
I don't think were in Kansas anymore, todo... I mean todo.
The word "todo" has lost all meaning for me!
In case anybody has problems with uuid. importing it like in the video didn't work for me. In the git repository it said to import it this way:
import { v4 as uuidv4 } from 'uuid'
That worked.
yup
Thank you
Much obliged
Thank YOU!!
thanks
The word Todo has lost all meaning
I'm currently doing the watchandcode JS course, which also has me building a todo list. After I don't know how many hours, the word todo is just so weird to me now.
Maybe they don’t know what else to do
@@woutjuh13 lol
Todo, I don't think we're in Kansas anymore.
good to beginners like me, we can focus on learning React rather than designing app- i started with the full course, felt React is so complicated! just because the recipe book app is too many components to do
Great lesson, but I had two problems with the code.
1. the import of uuid should now say (according to their readme)
import { v4 as uuidv4 } from 'uuid';
2. There is a problem with the react.strictMode in that the code in de video doesn't restore the todos from storage correctly.
Although removing strictmode solves it, I also watched your react hooks video in which you explain how to correctly call the setState functions and why it otherwise doesn't do what you might expect when called more than once.
So it seems in this case the setTodos in the useEffect that initializes the todo's should say:
setTodos( prevTodos => [...prevTodos, ...storedTodos] );
instead of
setTodos(storedTodos)
After that change the function will restore the todos even in strictmode.
You sir are a legend! was stuck on problem 2 for so long
Thanks for the setTodos() fix, but mine has a bug where the todos are duplicated on their own, even with their IDs, when I update the code. Not sure if it's related to this
@@zachboemer4008 Just disabling strict mode and using the original `if (storedTodos) setTodos(storedTodos)` fixed it for me
Why is this workaround necessary? I don't see how React is usable if this simple save and reload code doesn't work in strict mode.
thanks to you
There was so much of well explained info jam packed in 27 minutes! Definitely need time to absorb it all coming from just vanilla js, but wow Kyle! This was a great intro, and I loved how you covered soo many things and explained each of them too. As always, thanks a ton!
I really like the speed and precision of this tutorial. A lot of tutorials are slow and not very concise. However the variable naming and overuse of the word "todo" made it way less simple than it could have been.
todo todo todo
Came here to say the same thing. Trying to differentiate between 4 different “todos” names and learning what each one does was very challenging.
@@CrazyPlumGaming that's what you get when you skipping Javascript lessons, its easy to see it if you know basic javascript
@@kodiak809 do you feel better now? That’s what you get “when you skipping English lessons”. It’s easy to type a reply when you know basic English.
@@CrazyPlumGaming in what world is english lesson relevant to programming?
Everyone here is complaining about how many todos he said I'm just here appreciating how clear he is when he explains!!
Agreed with the two above!!!
So true!!!
Yes 100% true
lucky you. I failed dismally at this one. Maybe this is not for me
he explains well and the pacing of the video is really good but the naming is poor af
I did struggle a lot to learn React. I wasted a lot of time.
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.
Head First is actually a great series to get your start in most programming / scripting languages.
Congratulations! 😉
One of my TODOs is to learn React. cheers
Wow, this is so convoluted for no reason. Perfect example for why meaningful variable names are important.
what's convoluted?
@@InfectedEnnui todo todo todo todo, everything is named todo
1. TODO
2.
TODO
3. TODO TODO TODO TODO TODOOO
(pink panther theme)
Lmaoooo😂😂
Just following
The fuck 😂😂😂
this video is useless due to all of the 'todos'...he should make them unique so a person can understand what is what...
🤣🤣🤣🤣👌🏻
This was exactly what I needed! Thank you! I think the best part was the careful order in which you introduced things -- one complication at a time with a simple description of how we handle it in React. This format worked really well for me.
Man... it's amazing the way you explain things. I've had my fair share of courses that are almost only "see me doing and copy". But you actually explain stuff even though your lessons are still quick. Congratulations, really beautiful stuff.
I'm in a Bootcamp and I've learnt from your one video than I did in a whole week! No doubt your the best teacher when it comes to the Web 🔥
I blindly started working on a React Project yesterday as it‘s the way I often learn programming languages. Even though I was on a good way I turned to UA-cam for a bit more help as it was getting very tedious. This was so great, you explained so many concepts and mechanics in such short time! Thank you for making my WebDev World a bit brighter :D
If you are watching this now in 2022, after npm i uuid
you need to do
import {v5} from "uuid";
and use v5() function in id:
Thank both of you I couldn't find a solution
life saver. ty
This was everything I’ve been trying to understand the past few days in one video!! Thank you so much!
Amount of topics packed in this 30 minutes is impressive
these
Also the amount of useless stuff is great
+1
@@WantOxide Is useLess also a react hook?
Thank you for the helpful video. As others suggested, it might be a good idea to use more variety when naming the variables, components, etc. to help out beginners (like myself) who easily get confused. I still found this very helpful, so thanks!
One of the best breakdowns I have seen in a while. Straight to the point and not just coding harp hazardly
I was doing good until minute 18 everything went side ways and i realized i wasn't sure what i was doing
thanks for the introduction to these concepts im sure in the future it will help me recognized patterns in react use
This was my first bash at React! Great tutorial & well explained. Now I have a million other questions but will get to know the framework better as I use more! Will defos subscribe!!! Merry Christmas from Scotland :)
did you learn it good enough now?
Great tutorial. No "just copy this code, because it would take too long to explain" parts. Solid delivery on what is promised.
I've been scouting the interwebs for a few hours trying to grasp react and this is what made it click for me.
A must watch video for a beginner in react. You made it very easy to understand. All your videos are so clear and to the point. Thank you man!
Great overview. Thank you for this tutorial. The amount of stuff you cover in 30 mins is sick!!!
Small thing I ran into: When trying to load tasks from storage be sure you do not have React.StrictMode enabled. It will cause the useEffect block to run twice which will prevent tasks from reloading correctly.
That was really helpful! Thanks! was stuck at this part for about 2 hours, checking through my code and wondering why!!
@@bladex9061 same!
you saved me like 2 hours of troubleshooting
4 hours of troubleshooting...
I removed the React.StrictMode in index.js but it is still preventing the tasks from loading... not sure what could be wrong
This is jam-packed React and JavaScript goodies. Thank you for sharing. Learned a lot in 30 minutes.
Dude, thank you!
Your first 5 minutes of the video helped me in understanding compiling. You're excellent in explaining things.
Amazing example. Finally React starts to make sense to me. For other beginners, you must have already taken full JS, HTML and CSS courses, know how a basic ToDo app is built without React, then put this video on 0.75x. Then things will start to make sense and you would be able to follow.
This was a great lesson. Excellent, clear and direct teaching. Thank you.
This video was so helpful to me. I’m a ux /ui designer and was working to study typescript and react. This video got me understand the basics. Thanks for making this! 🙏
This is great. Side note for unique ids when using keys. Another video had me take the todolist array length, find the number of the last item in the array and add 1 to it's id for new todos. This seems easier than the random key generator option but I'm sure the key generator is better for other scenarios .
Your videos are great. I'm quite new to programming and I find the level of detail excellent. You explain the parts many others skip, and actually show how things work. Thanks for making these!
In case someone else is having issues with importing uuid as he did in example(for me it didn't work), here is how it worked for me
import { v4 as uuidv4 } from 'uuid';
Great tutorial btw
thank youuuuu
👍👍
Thank youuuuuuuu..
take a shot everytime he says todo
No thank you, I would like to live.
Am now an alcoholic
That wasn't a good idea, I am writing this from heaven.
JK!
In hell.
@@ashleywilkonson386 you really weren't supposed "to do " that
not everyone is alcoholic homeless piss of shit
Thank you Kyle, I'm proud to say I've learned the basic concepts and hooks of React in a day because of you! Thanks.
The best tutorial to understand the react js, voice is very clear and confident. instead of learning i was trying to learn his style of speaking. Very clear and profound.
Great tutorial! Very succinct and clear :)
A decent tutorial ruined by poor variable naming choices. Calling every variable ‘todo’ doesn’t help simplify data flow related concepts to beginners. Hopefully you’ll take this into account in future vids.
my head hurts.. i had to pause to see where it all connects.
@@marknguyen606 I think he is too fast, if he slows down and explains every data flow like we are idoits, that way is better and more clear.
You got a major point. I stopped watching the moment I started hearing the word todos every single second. Most channels of this type create a content but don't actually put themselves in an audience perspective.
Absolutely agree. Perhaps a better approach would have been to use suffixes e.g. todo_prop, todo_item or something among those lines.
@@shangshi6286 ..you can reduce the play back speed !!
This was very helpful. Kyle, you are a gifted teacher, breaking down concepts so people can understand. Thank you!
You're so awesome, intelligent, and well spoken bro. Thank you for all of your help. I've learned so much from your channel and you've helped me get through school! React is so much easier if you know how to write raw HTML, CSS, and JS. Thanks for explaining the information in a way that everyone can understand.
Great video, one thing to note if anyone made the same mistake, the useEffect function that saves the state to local storage must be placed below the useEffect function that retrieves the existing/previously stored state. Otherwise, you'll have the useEffect function that sets the current state set it to empty(since it hasn't retrieved the local todos) and you're saved todos won't show on refresh.
Thanks this saved me
Thank you so much, thought it was a strict mode issue but this fixed it.
I had already placed it below the getItem useEffect but still it saves empty [] to todos, for this i had added an if(todos != " ") condition before the setItem line and it solved the issue. You can try this.
@@shree4641 thanks that worked
Oh God you saved me
Thanks for creating such premium content for free. I have learnt a lot of important web dev concepts from your videos. This is short and simple intro to React. I like this one.
Great instructor, clear words with a clear voice. not too fast not too slow. the best possible speed. Thanks
Thanks Kyle. I always enjoy your tutorials. Not sure why I never coded along on this one but done now.
i can't even speak in my mother language for 5 minutes without any pause or a little bit stutter while speaking fast.
big applause to this guy for talking not only smoothly but also doing that for about 30 minutes.
wow.
my ear tired hearing 'to do' 😂😂
14:39 was a breath of fresh air
Ty so much, I just know basic html, css and js and react was always something confusing and scary.. But this rlly helped me understand react a lot more
Thank you so much for explaining so well in such short time.
Everything was great before I start reading the comment. Now. I just hear todo, with todo, does todos :)
Thanks for the video :)
Man thank you so much, I hope to see a complete React course coming quite soon, I like how you explain complex things.
I already have a complete React course on my website linked in the description.
Kyle is there a coupon code you have handy for your course?
Thank you, dude! Even though the process of creating a react app has changed a little bit, I actually was able to run it! I've watched a couple of videos on the Internet but it's only you who helped me out! Thanks!
This is an excellent 20K foot overview to get the basics and move on to more in-depth material later.
I’m going to make a tutorial on React… todotodotodotodotodotodo
A-W-E-S-O-M-E teacher. Congrats!!!
Excellent Tutorial! I found it to be so helpful just to watch someone quickly create a simple app. It really helped me put the pieces I've been learning into perspective.
Great video my man. I really appreciate that you made this great intro free of charge.
Another Awesome video!
Note :
Viewers have some knowledge on react components, Props & hooks to understand the code
Video speed 2X: Learn React in 15 minutes ;)
that would be an example of what not "to do".
Lmao
1.25x ain't so bad, just sayin 😁
Install video speed controller and put it to 10x to "Learn React In 3 Minutes"
@@patrickwalsh9444 Learn React in 24 minutes! :)
Hi Kyle, thank you for producing tutorials like these that are easy to grasp and let us new developers adapt faster.
Can I just request for a tutorial for a Phonebook app that will show CRUD with react and Google Sheet as database?
That's mind boggling explanation?
I can explain back even in sleep. Kudos to you
Alert: while importing uuidv4 use this code instead:
import { v4 as uuidv4 } from 'uuid';
it works well !!
Thank you so much! This helped!
This comment should be right at the top
Hi Kyle, I know you didnt have a lot of time to explain but something that really confused me was how you could use the line const [todos, setTodos] = useState([]) to create an Array variable todos and a function setTodos(). Throughout the video you keep using setTodos as a function but it's not classically defined. So I kept looking for the setTodos function we didnt write. I guess it's time to buy that full course to understand useState()...
I had exactly the same doubt in my first viewing. However he defines what setTodos does with that todos = [...prevTodos, newTodo] part, which struck me when I rewatched that bit. But yes, it is definitely confusing at first
Bravo Sir! This is just the right amount of jumping in the deep end and explanatory tutorial. As a semi experienced programmer I found this video to be a just right in terms of scope. Yes some things I didn't understand, but that's okay because I can look them up and watch this video twice. The only thing that was missing was a barebones description of what IS React, but like I said, that's okay. I watched a different 5 minute introduction video and came back.
I'm gonna try to implement your script. Let's see how that goes! lol
Man I really appreciate these guides , you do a great job of explaining.
The only criticism I have is that at one point in the video my mind went blank from all of the "Toodos" and I just stared at the computer screen for a good solid minute trying to figure out what reality I am in.
How the eff did you learn all this with only one head?
This will be my foundational video for learning react.
If anyone started having errors after import "uuid" it turns out the way to import has been update slightly. Now import it with "import {v4 as uuidv4} from 'uuid'" and I was able to run my script again. Hope that helps someone out there.
Yup came to write the same thing. Glad someone already pointed it out ! Thank you :D
thanks man!
Oh THANK YOU!
This was very concise and clearly explained! Thank you :)
great quick dive into REACT! good of you to explain the todos props at @11.05 . It's a lot better using different names for different items. imho . Your're a great teacher.! keep them coming! :)
I have a question, why did you use useRef to get the input value while you can access it from event.target.value ?
Thank you for the tutorial, you make the useEffect more clear to understand, really thanks.
While it's true that 'e.target.value' can be used to grab the value of an input element, he's applying the event listener to the button element instead of the input element. When the user clicks on the 'Add Todo' button, the button element is what 'e' would be referring to when it's passed into the 'handleAddTodo()', thus, 'e.target.value' wouldn't give the input value since that value comes from the input element and not the button element.
You're an amazing teacher with amazing hair.....😃
Thank you so much for creating this video. This saved me tons of time to learn react in a short period of time.
Thank you! Most important things explained quickly with examples! Exactly what I needed!
oh man, i was starting to get it at the beginning but there were so many todos thing it just got super confusing.
The Best Teacher on the YT at this moment!
Thank you!
Thanks once again!
(It does help a lot to be used to this sort of teaching pace, but still totally doable)
Thank you so much, really appreciate efforts you have made to make this tutorial and try to explain most of the concept with help of live example. Thanks a ton!!!
I loved this tutorial. I start my first IT job on Monday (so excited!), so I'm doing projects to refresh some stuff, and your video was so helpful!
PS: i followed a lot of your videos while learning and you're the best!
How is the new job🎉?
@@farter134 it's great!! The office is amazing, they let us wear slippers to work lol 😂
@@candym5280 how is that possible?
For those using this in 2023, this tutorial is still mostly valid BUT since it's react 18 ReactDOM.render() isn't supported and you have to use
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
);
what a chad
Fabulous introduction to React. I've been using Angular for most of my development but have been curious about react. You can never know to many frameworks. I guess I'll have to go on a deep dive into react. Don't think I'll be changing over to react at my day job but there's always side development.
Amazing work there. I just tried to play in 0.75x as I was watching and doing at the same time. This helped big time, thank you so much!
The word todo was use so many times. I got lost. Should have used another word when it was possible. Didn't watch til the end
I agree
I lost track halfway
9:30 min and am already completely lost pulling my hair. I wanna die
So am I😭.it's been three months since you posted this comment,are you a react dev now ?????
If you wanna understand how useState works (and you know JS) check this vid out. (the first half):
ua-cam.com/video/1jWS7cCuUXw/v-deo.html
I gave up
@Nickolas Gettel what software know how do
Have under your belt?
@@keerthanaanandan6062 it's been 6 and am still lost af LMAFOOOOOOO
this is great, I am a C# dev that has recently been working a lot in Vue and wanted to learn more about React. Learned a ton in this video, excellent tutorial!
A very good and quick explanation of React basics. That's very important for my career. Thank you for the tutorial.
I bet the word "task" was at the tip of your tongue the whole time while making this video. 😉 Side note: the variables/object names are way too similar, making it tough to keep track of what they represent. We still appreciate the video, though. 👍❤
As a dev you should have used better names instead of calling everything todo
I think he knows what todo
Just the crash course I needed. Thank you so much!
Man you do your videos well. Even just explaining how to setup in VSC and what all of the files are.
this has got me so confused, do you have another simple project without using the word todo so many times lol :)
"And now what you have to do is to make a todolist that todo is todo tOdO todODOtoTOdotO"
Kyle, nice job. Really enjoyed this presentation and I've benefited from you channel. Thank you.
Wow thank you so much for this! It has given me a better understanding of React.
Buy his react course. NOW!
Please make one more on REACT REDUX.
And Redux-saga,please!
One of the best intro to react videos I've come across so far.
thank you for this short tutorial. Really useful and helped me understand the basics of React.
Just one suggestion, the variable names are really confusing, todos, etc, hence, using different variable names would be better.