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
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! :)
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.
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.
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
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.
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.
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
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.
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 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.
This dude is horrible teach...horrible tutorial. Folks there are WAAAY better tutorials from folks that make it way easier and don't intentionally try to make it hard.
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.
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
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.
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.
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.
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
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.
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(
for people watching it now. Import import { v4 as uuid } from "uuid"; and use ` return [...prevTodos, { id: uuid(), name: name, complete: false }];` if you have any issues
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!
the first 15 mins it was very clear to me ... but after that it started to be very complicated with the word TODO .. we all know u r a beast but it would be better if you choose other words than todo and be a bit slower so we the beginners could understand you way better anyway thnx for the vid and try to be a bit slower cuz i think 70% of ur followers are beginners :)
So in minute 22 i wasn't able to recover correctly the todos after refreshing . Doing some debuggin seems that the setItem was running 2 times. This was because the if statement that check for storedTodos will always resolved to true even if the array was empty, efectivly clearing the array. I had to check that the length of storedTodos was greater than 0 inf the if evalutaroand then it would work correctly.
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.
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.
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.
A lot of people are commenting on the repetitiveness of the todos. I almost agree. In coding, I was taught to name your data types, functions, classes, objects, etc, based on what they do. And since this is all a todo application that does todo stuff it kind of makes sense to me. Granted I have been practicing for a while so that definitely helped. I don't think a brand new person would understand this all that well. If it was a large app with multiple types of things it can do, it would make sense that the names were a bit more different. But similar names with some changes in a way makes it clean. Like if you think, a list of todos, a single todo, handling a todo, clearing a todo, the names make sense to me. And you definitely stop to explain things, but this isn't something someone, especially a new person, can just watch you and follow along, they got to stop coding to listen to what you are talking about on each topic. Good video in my opinion, just a little rough around the edges.
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.
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.
The concept of persisted data is a hard one to grasp. This cleared it up a bit as far as local storage even though it wasn't the information I intended to mine from this video lmaooo . This proved to be more useful than expected
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 :)
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! 🙏
Today we're gonna be learning to do stuff with to do's to make a to do list, but don't do anything too crazy with your todos, cuz todo that with your todos would not be very todo of you. Love the vids.
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 .
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.
UUID is no longer imported with that line. Use import {v4 as uuidv4} from 'uuid'; to fix the packaging error (make sure you install and restart your server when adding new packages)
Thank you, the error message disappeared, but, it does not appear to be working for my code, It allows me to check only one Todo in my todo list. Is that something to do with ID?
About the 'todo's: In the body of the function, *everything inside a curly bracket is an attribute*. Its an information thats being propagated from the parent to the child. Call it 'todoAttr'. *Everything outside the curlies (e.g. todo={...) is a prop*. Its a local variable for receiving the attribute. Call it 'todoProp'. Outside the body of the function we have 'function Todo ({ todo }) {'. That's *the declaration of the props*, so call it 'todoProp' also. ______ (I'm not sure this is the 100% correct mindset but its how I understood and it works.)
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!
I had some issues installing the create-react-app which led to an EONENT error each time, so just in case this happens to any beginner out here, make sure to clean your npm cache first by running: npm cache clean --force Then for some reason create-react-app would only let me create the app if I indicated a name, so instead of npx create-react-app . I had to run : npm create-react-app my-app Hope this helps anyone in need :) Otherwise wonderful content as always
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.
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.
This felt less efficient than using regular HTML & JavaScript. But it’s probably because of how small the project was. It does look like it would make a project a lot easier to scale though.
23:15 [...todos] it creates only copy of array but not of its elements (shallow copy) - so you actually not create copy of todo which you are updating .... Except that whole tutorial is quite nice :)
hey i think that few of you also might have the problem in installing, importing and using uuid in windows so try this: instead of "nmp i uuid" write "npm install uuidv4" in the terminal instead of " import uuidv4 from 'uuid/v4' " write "import {uuid} from 'uuidv4' " instaed of "id: uuidv4()" write "id: uuid()" hope this helps PS: remove " " marks before copying the code
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!
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. 👍❤
Holy-shitt balls I struggled soo bad to create the react app, cause of my poorly organized directories, on top of that, i got a pop up stating that I also needed to download the dev tools as well, thanx 4the tutorial vro.
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!
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!
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
@@CurrencyTradingCards same i dont even want to learn it anymore
😂
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
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
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
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
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?
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 🔥
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...
🤣🤣🤣🤣👌🏻
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
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
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
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?
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.
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
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
This dude is horrible teach...horrible tutorial. Folks there are WAAAY better tutorials from folks that make it way easier and don't intentionally try to make it hard.
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.
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
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
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
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.
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..
ty
if (todo > todo || todo < todo) {
return todo
}
Everything was great before I start reading the comment. Now. I just hear todo, with todo, does todos :)
Thanks for the video :)
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.
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
for people watching it now. Import import { v4 as uuid } from "uuid"; and use ` return [...prevTodos, { id: uuid(), name: name, complete: false }];`
if you have any issues
wish I saw this comment before fucking around tog et this right cheers!
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!
the first 15 mins it was very clear to me ... but after that it started to be very complicated with the word TODO ..
we all know u r a beast but it would be better if you choose other words than todo and be a bit slower so we the beginners could understand you way better
anyway thnx for the vid and try to be a bit slower cuz i think 70% of ur followers are beginners :)
So in minute 22 i wasn't able to recover correctly the todos after refreshing . Doing some debuggin seems that the setItem was running 2 times. This was because the if statement that check for storedTodos will always resolved to true even if the array was empty, efectivly clearing the array. I had to check that the length of storedTodos was greater than 0 inf the if evalutaroand then it would work correctly.
this!! you're a life saver. I'm confused as to how his code ran the way it did with this error?
BUMPP!!
Best ever! 30 mins react tute in youtube! thank you very much! take my word for this is the best video !
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 !!
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.
my ear tired hearing 'to do' 😂😂
14:39 was a breath of fresh air
A lot of people are commenting on the repetitiveness of the todos. I almost agree. In coding, I was taught to name your data types, functions, classes, objects, etc, based on what they do. And since this is all a todo application that does todo stuff it kind of makes sense to me. Granted I have been practicing for a while so that definitely helped. I don't think a brand new person would understand this all that well. If it was a large app with multiple types of things it can do, it would make sense that the names were a bit more different. But similar names with some changes in a way makes it clean. Like if you think, a list of todos, a single todo, handling a todo, clearing a todo, the names make sense to me. And you definitely stop to explain things, but this isn't something someone, especially a new person, can just watch you and follow along, they got to stop coding to listen to what you are talking about on each topic. Good video in my opinion, just a little rough around the edges.
Oh one thing though. Looks like I can add in todo objects when I have an empty text field. Did I miss something here?
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.
Todo, todo, todo todo todo todo todooooooo todododo!
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.
The concept of persisted data is a hard one to grasp. This cleared it up a bit as far as local storage even though it wasn't the information I intended to mine from this video lmaooo . This proved to be more useful than expected
As a dev you should have used better names instead of calling everything todo
I think he knows what todo
Thanks for this! Couldn’t really follow it but I will watch on repeat
Now that's what I call motivation. Keep it up! 😉
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?
Thank you so much for creating this video. This saved me tons of time to learn react in a short period of time.
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
This was everything I’ve been trying to understand the past few days in one video!! Thank you so much!
One of the best intro to react videos I've come across so far.
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! 🙏
Today we're gonna be learning to do stuff with to do's to make a to do list, but don't do anything too crazy with your todos, cuz todo that with your todos would not be very todo of you. Love the vids.
14:39 - 'do to' LOL why is this my new favorite drinking game
How the eff did you learn all this with only one head?
This will be my foundational video for learning react.
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 .
OMG!!! THE BEST REACT GUIDE EVER!!!!!!!!!!
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!
the sheer amount of "to do" and "to do's" .... holy fuck. great video man
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! :)
I am not a react beginner. Was just watching while eating and really learned a few new stuff. Thanks!
oh man, i was starting to get it at the beginning but there were so many todos thing it just got super confusing.
UUID is no longer imported with that line. Use
import {v4 as uuidv4} from 'uuid';
to fix the packaging error (make sure you install and restart your server when adding new packages)
I owe you a beer, where should I send it?🍺🍺🍺
Thank you, the error message disappeared, but, it does not appear to be working for my code, It allows me to check only one Todo in my todo list. Is that something to do with ID?
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
Great instructor, clear words with a clear voice. not too fast not too slow. the best possible speed. Thanks
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
Absolutely MIND-BLOWING command over subject and a wonderful handson trainer.... ABSOLUTELY SUPERB.
Please share with us the steriods you're on...
Hey Siva! Are you a student or working currently? Would you be interested in exploring job opportunities in web development?
@@shivanigaddagimath6105 Could you provide the details if still you have those opportunities?
This is jam-packed React and JavaScript goodies. Thank you for sharing. Learned a lot in 30 minutes.
About the 'todo's:
In the body of the function, *everything inside a curly bracket is an attribute*. Its an information thats being propagated from the parent to the child. Call it 'todoAttr'.
*Everything outside the curlies (e.g. todo={...) is a prop*. Its a local variable for receiving the attribute. Call it 'todoProp'.
Outside the body of the function we have 'function Todo ({ todo }) {'. That's *the declaration of the props*, so call it 'todoProp' also.
______
(I'm not sure this is the 100% correct mindset but its how I understood and it works.)
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!
I had some issues installing the create-react-app which led to an EONENT error each time, so just in case this happens to any beginner out here, make sure to clean your npm cache first by running:
npm cache clean --force
Then for some reason create-react-app would only let me create the app if I indicated a name, so instead of npx create-react-app . I had to run :
npm create-react-app my-app
Hope this helps anyone in need :)
Otherwise wonderful content as always
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.
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.
This was a great lesson. Excellent, clear and direct teaching. Thank you.
VERY COMPREHENSIVE TUTORIAL, Thank you very much :)
I’m going to make a tutorial on React… todotodotodotodotodotodo
you and Andrew Mead are great teachers... pildoras informatica para los que solo hablan español
Great tutorial! Very succinct and clear :)
10/10 - fast, no droning, to the point.
This felt less efficient than using regular HTML & JavaScript. But it’s probably because of how small the project was. It does look like it would make a project a lot easier to scale though.
In a bigger project it’ll be even less efficient.
@@aammssaamm So why do people use it then?
@@aammssaamm I’m not being sarcastic, just trying to understand
@@henriqueb5637 money. nearly all modern sites use react so best chance getting hired that way
Unbelievably clear and easily understandable. You have a gift!!!! Thank you!!!
"And now what you have to do is to make a todolist that todo is todo tOdO todODOtoTOdotO"
Loved this video!!
Hi Simran! Are you a student or working currently? Would you be interested in exploring job opportunities in web development?
for those having trouble with UUID
import this way instead
import { v4 as uuidv4 } from "uuid";
still it says not having unique id wtf..
fixed it sometimes i go full retard lol
A-W-E-S-O-M-E teacher. Congrats!!!
One of the best breakdowns I have seen in a while. Straight to the point and not just coding harp hazardly
You're an amazing teacher with amazing hair.....😃
23:15 [...todos] it creates only copy of array but not of its elements (shallow copy) - so you actually not create copy of todo which you are updating .... Except that whole tutorial is quite nice :)
this has got me so confused, do you have another simple project without using the word todo so many times lol :)
hey i think that few of you also might have the problem in installing, importing and using uuid in windows so try this:
instead of "nmp i uuid" write "npm install uuidv4" in the terminal
instead of " import uuidv4 from 'uuid/v4' " write "import {uuid} from 'uuidv4' "
instaed of "id: uuidv4()" write "id: uuid()"
hope this helps
PS: remove " " marks before copying the code
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?
Damn.no-nonsense,quick and on point
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?
This video is freaking awesome... I just followed it and it is just plain perfect. I'm buying the course now even with Argentina's Exchange Rate...
Another Awesome video!
Note :
Viewers have some knowledge on react components, Props & hooks to understand the code
Thx for thanking the time to speak slowly. I could follow you perfect.
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. 👍❤
Great overview. Thank you for this tutorial. The amount of stuff you cover in 30 mins is sick!!!
I still don't know what todo
very well explained
Damn, this guy can win a staring contest. How can u not blink?
He is not a human, he is a todo machine.
what? I see him blinking every few seconds ...
Holy-shitt balls I struggled soo bad to create the react app, cause of my poorly organized directories, on top of that, i got a pop up stating that I also needed to download the dev tools as well, thanx 4the tutorial vro.