Learn React In 30 Minutes

  Рет қаралды 1,369,780

Web Dev Simplified

Web Dev Simplified

Күн бұрын

🚨 IMPORTANT:
Full React Course: courses.webdev...
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/Web...
🧠 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.webdev...
Patreon: / webdevsimplified
Twitter: / devsimplified
Discord: / discord
GitHub: github.com/Web...
CodePen: codepen.io/Web...
#Reactjs #WDS #JavaScript

Пікірлер: 1 600
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
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
@JUnderwoodViolin
@JUnderwoodViolin 5 жыл бұрын
How often do you send out emails to your newsletter distribution?
@elabinnovations
@elabinnovations 4 жыл бұрын
In India, it is 4000+ rupees 😭
@ProtikPC_pro_indigo
@ProtikPC_pro_indigo 4 жыл бұрын
Nice one, practical and hands on. Take a look at this too -- kzbin.info/www/bejne/Y2SqYX-QoceIn9U Simplified, very basic and from the ground up,
@joaoalegria7578
@joaoalegria7578 4 жыл бұрын
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! :)
@4spuhrbar886
@4spuhrbar886 4 жыл бұрын
Thx for the Video!
@mr_matata
@mr_matata 4 жыл бұрын
so many *Todo* that i don't understand what todo and what not todo "cries in todo"
@yashwanthcb
@yashwanthcb 3 жыл бұрын
create a todo item of cry
@kendriip
@kendriip 3 жыл бұрын
Are you sure crying is the right thing todo
@printchannel_name3371
@printchannel_name3371 3 жыл бұрын
glad im not the only one Todo that
@kendriip
@kendriip 3 жыл бұрын
@@TheBadBeatShow same i dont even want to learn it anymore
@Priyanka-cy3zw
@Priyanka-cy3zw 3 жыл бұрын
😂
@MothBallsYT
@MothBallsYT Жыл бұрын
Wow, this is so convoluted for no reason. Perfect example for why meaningful variable names are important.
@InfectedEnnui
@InfectedEnnui Жыл бұрын
what's convoluted?
@MothBallsYT
@MothBallsYT Жыл бұрын
@@InfectedEnnui todo todo todo todo, everything is named todo
@PeterBernardin
@PeterBernardin 3 жыл бұрын
Everyone here is complaining about how many todos he said I'm just here appreciating how clear he is when he explains!!
@Pearlescent800
@Pearlescent800 3 жыл бұрын
Agreed with the two above!!!
@s941407
@s941407 3 жыл бұрын
So true!!!
@mallikarjunhagargi7830
@mallikarjunhagargi7830 3 жыл бұрын
Yes 100% true
@kamogelokhumalo4792
@kamogelokhumalo4792 3 жыл бұрын
lucky you. I failed dismally at this one. Maybe this is not for me
@hil449
@hil449 3 жыл бұрын
he explains well and the pacing of the video is really good but the naming is poor af
@cptCrax
@cptCrax 4 жыл бұрын
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.
@timstern1540
@timstern1540 2 жыл бұрын
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.
@bladex9061
@bladex9061 2 жыл бұрын
That was really helpful! Thanks! was stuck at this part for about 2 hours, checking through my code and wondering why!!
@erkinylmaz7661
@erkinylmaz7661 2 жыл бұрын
@@bladex9061 same!
@theaceforum
@theaceforum 2 жыл бұрын
you saved me like 2 hours of troubleshooting
@suti1979
@suti1979 2 жыл бұрын
4 hours of troubleshooting...
@andresayala9640
@andresayala9640 2 жыл бұрын
I removed the React.StrictMode in index.js but it is still preventing the tasks from loading... not sure what could be wrong
@ZakkPanzermensch
@ZakkPanzermensch 4 жыл бұрын
1. TODO 2. TODO 3. TODO TODO TODO TODO TODOOO (pink panther theme)
@casual_chess
@casual_chess 4 жыл бұрын
Lmaoooo😂😂
@실험맨
@실험맨 4 жыл бұрын
Just following
@RudraDirtTrails
@RudraDirtTrails 4 жыл бұрын
The fuck 😂😂😂
@1randumbguy
@1randumbguy 4 жыл бұрын
this video is useless due to all of the 'todos'...he should make them unique so a person can understand what is what...
@dharmang
@dharmang 4 жыл бұрын
🤣🤣🤣🤣👌🏻
@franjomaric7913
@franjomaric7913 2 жыл бұрын
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
@lenkashynkarova6388
@lenkashynkarova6388 2 жыл бұрын
thank youuuuu
@soumia1341
@soumia1341 2 жыл бұрын
👍👍
@Wordisgood
@Wordisgood 2 жыл бұрын
Thank youuuuuuuu..
@kose241
@kose241 4 жыл бұрын
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.
@jamegumb77
@jamegumb77 4 жыл бұрын
Thanks this saved me
@kiwi-el-gato9007
@kiwi-el-gato9007 Жыл бұрын
Thank you so much, thought it was a strict mode issue but this fixed it.
@shree4641
@shree4641 Жыл бұрын
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.
@gregjacobs189
@gregjacobs189 Жыл бұрын
@@shree4641 thanks that worked
@tenzindala457
@tenzindala457 Жыл бұрын
Oh God you saved me
@yogajourney9519
@yogajourney9519 3 жыл бұрын
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!
@sohailfx
@sohailfx 3 жыл бұрын
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.
@stealthmonkey3G
@stealthmonkey3G 3 жыл бұрын
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.
@stealthmonkey3G
@stealthmonkey3G 3 жыл бұрын
14:39 - 'do to' LOL why is this my new favorite drinking game
@HosseinRooholamini
@HosseinRooholamini 2 жыл бұрын
Great instructor, clear words with a clear voice. not too fast not too slow. the best possible speed. Thanks
@STUPIDYOUTUBE_HIDINGMSGS
@STUPIDYOUTUBE_HIDINGMSGS 4 жыл бұрын
One of my TODOs is to learn React. cheers
@coreyknight9272
@coreyknight9272 2 ай бұрын
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.
@shinichi9do
@shinichi9do 5 жыл бұрын
my ear tired hearing 'to do' 😂😂
@FrazzleDazzle835
@FrazzleDazzle835 4 жыл бұрын
14:39 was a breath of fresh air
@ThomasKupracz
@ThomasKupracz 2 жыл бұрын
Great overview. Thank you for this tutorial. The amount of stuff you cover in 30 mins is sick!!!
@thePadlockesTech
@thePadlockesTech 3 жыл бұрын
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.
@thePadlockesTech
@thePadlockesTech 3 жыл бұрын
Oh one thing though. Looks like I can add in todo objects when I have an empty text field. Did I miss something here?
@krystaladeoye2911
@krystaladeoye2911 2 жыл бұрын
This was very helpful. Kyle, you are a gifted teacher, breaking down concepts so people can understand. Thank you!
@jiauyjiauy3777
@jiauyjiauy3777 2 жыл бұрын
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!
@ashp7264
@ashp7264 Жыл бұрын
Damn.no-nonsense,quick and on point
@aayesharouther9023
@aayesharouther9023 3 жыл бұрын
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
@m.haydar.mosawi
@m.haydar.mosawi 4 жыл бұрын
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.
@Zestyyy28
@Zestyyy28 4 жыл бұрын
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.
@bojacksworldwideweb
@bojacksworldwideweb Жыл бұрын
Holy-shitt balls I struggled soo bad to create the react app, cause of my poorly organized directories!! thanx 4yo tutorial vro.
@abqsky5338
@abqsky5338 4 жыл бұрын
Dude, thank you! Your first 5 minutes of the video helped me in understanding compiling. You're excellent in explaining things.
@jonathangeorge7528
@jonathangeorge7528 4 жыл бұрын
for those having trouble with UUID import this way instead import { v4 as uuidv4 } from "uuid";
@GetBackTrolling
@GetBackTrolling 4 жыл бұрын
still it says not having unique id wtf..
@GetBackTrolling
@GetBackTrolling 4 жыл бұрын
fixed it sometimes i go full retard lol
@Nathan-ws5fi
@Nathan-ws5fi 3 жыл бұрын
I love this video My next thing to do is a todolist that has todos that can do different things to do different things on the todos to update the todolist and that would allow me todo what I needed to do off my todo list.
@candym5280
@candym5280 2 жыл бұрын
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!
@farter134
@farter134 2 жыл бұрын
How is the new job🎉?
@candym5280
@candym5280 2 жыл бұрын
@@farter134 it's great!! The office is amazing, they let us wear slippers to work lol 😂
@logarithm0
@logarithm0 2 жыл бұрын
@@candym5280 how is that possible?
@PerryCodes
@PerryCodes 2 жыл бұрын
The uuid import statement will no longer work if you're following this in 2021 (or later...). You'll have to change your uuid import to: const { v4: uuidv4 } = require('uuid');
@oracleking4252
@oracleking4252 5 жыл бұрын
How the eff did you learn all this with only one head? This will be my foundational video for learning react.
@pietroflow
@pietroflow 3 жыл бұрын
searching for skills I always wanted to learn... And always finding your vids 👌🏼👌🏼👌🏼👌🏼 Great great great job
@AlexTechie
@AlexTechie 5 жыл бұрын
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. 👍❤
@MrBrady95
@MrBrady95 3 жыл бұрын
Cool video, thanks! I had to change it to an updated version of uuidv4, but this works instead: import { v4 as uuidv4 } from 'uuid'; Then in the id : uuidv4();
@alishajamadar603
@alishajamadar603 4 жыл бұрын
Thank you so much for explaining so well in such short time.
@TheEnisshom
@TheEnisshom 3 жыл бұрын
you made do what i couldn't do , thank u Kyle ;)
@rayenhidri584
@rayenhidri584 3 жыл бұрын
thx for all the courses
@SergioArroyoSailing
@SergioArroyoSailing 4 жыл бұрын
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! :)
@SirXtC
@SirXtC 4 жыл бұрын
oh man, i was starting to get it at the beginning but there were so many todos thing it just got super confusing.
@Mr100pic
@Mr100pic 2 жыл бұрын
This is actually pretty excellent.
@buriza2401
@buriza2401 Жыл бұрын
Thanks, that was a great refresher!
@sandippatel2518
@sandippatel2518 2 жыл бұрын
Learned lot from this video.
@mdatharalam6918
@mdatharalam6918 Жыл бұрын
Very very straightforward, you are the god of react, hats off sir
@rkeenan85
@rkeenan85 3 жыл бұрын
I really love these shorts tutorials.
@asadulhaqmshani4737
@asadulhaqmshani4737 3 жыл бұрын
Wow, learned so much in 30 minutes. Thanks a lot!!!!
@oubayheot8843
@oubayheot8843 Жыл бұрын
if someone had an error ( Module not found: Error: Package path ./v4 is not exported from package ) after 19:19 ( importing uuidv4 ) or if your stopped till next time, try to use this : ''' import { v4 as uuidv4 } from 'uuid'; '''
@victornaut
@victornaut 3 жыл бұрын
Thanks once again! (It does help a lot to be used to this sort of teaching pace, but still totally doable)
@sergio..81
@sergio..81 2 жыл бұрын
If you're having problems using the uuid the it is in the video, I used it like this and worked for me: import { v4 } from 'uuid'; then you cand just use the function as v4()
@Yahkub
@Yahkub 2 жыл бұрын
Thanks Man!
@MomIsCrying
@MomIsCrying 2 жыл бұрын
True Hero
@Daniel00232
@Daniel00232 3 жыл бұрын
Thank you for this video, can you do exactly the same for Vue. With this short videos Im much more able to comprehend the basic concepts.
@RemotHuman
@RemotHuman 2 жыл бұрын
You need a library to generate an ID? Why not just increment a global variable by 1 (I wasn't paying the closest attention so sorry if this was dumb)
@layalsadek935
@layalsadek935 Жыл бұрын
Thank you kyle for this tutorial although I m a little bit confused so my questions are: why did you add the todo state inside the App component and not in the todoList component Why all the handleclicking function and useEffect are in the App component?
@jonathanvorich2120
@jonathanvorich2120 3 жыл бұрын
Good job, this crash course helps me al lot!
@sivaparanitharan3544
@sivaparanitharan3544 4 жыл бұрын
🙏 My dear Carl. 🌟 This is the best approach ever seen in learning programming. If you could kindly do similar lessons for Flutter & Dart & Go lang that will be a great help for many people and will be really inspiring start for many. You will empower many life for sure🥇👏 May the almighty God Bless You with Joyful Long Long Life. 🙌
@Your_Active_Hour
@Your_Active_Hour 2 жыл бұрын
That was actually a very good course. Thank you!
@alexirabor
@alexirabor 3 жыл бұрын
Thanks for your tutorial, it really helped me a lot
@andreaskk1
@andreaskk1 3 жыл бұрын
This was very concise and clearly explained! Thank you :)
@yewyewxd
@yewyewxd 4 жыл бұрын
I need to watch at a 0.75x speed, or else my brain will lag XD Good content, clear explanation, subbed !
@marcaurelt5725
@marcaurelt5725 Жыл бұрын
great content! keep them comming
@brianhaney6816
@brianhaney6816 2 жыл бұрын
Great tutorial!
@mashfikurrahman1115
@mashfikurrahman1115 3 жыл бұрын
thanks for perfect explain...
@karinabraga4466
@karinabraga4466 3 жыл бұрын
Thank you, reguards from Brazil!
@vizulefllry
@vizulefllry 3 жыл бұрын
Great tutorial.
@sophiehaug3319
@sophiehaug3319 4 жыл бұрын
Thank you for this brillant introduction!
@pianochannel100
@pianochannel100 3 жыл бұрын
You and the nullbyte guy need to get together and having a staring contest.
@mithunyadav8495
@mithunyadav8495 Жыл бұрын
Loved it!🥰
@katechaparro5924
@katechaparro5924 Жыл бұрын
This probably seems minute to an experienced developer, but when you're explaining something and you name multiple different items all the same thing (todo) it's always going to be at least a little confusing.
@Free_Ross_William_Ulbricht
@Free_Ross_William_Ulbricht Жыл бұрын
Great job!
@lucianofrancismelhemsesana9576
@lucianofrancismelhemsesana9576 2 жыл бұрын
Hello, so every time a single todo changes state it rerenders the whole component tree? I m learning react and I know from a course that the re render is per component. I m confused. You say this around minute 8:50. There is a key on each react components to make single component rerender (and other reasons) right?. Nice tip on the graphql shortcut, very useful, and very neat summary about react main topics. At first when you said persistance I thought you where aiming a DB. But it's a react video of course local storage or cookie makes more sense, something in the client side. Thanks!
@nawafb6280
@nawafb6280 4 жыл бұрын
Really thank youu for this tutorial and congratulations for your marriage love you brother you are the best in these days ever ❤️❤️❤️❤️
@Pareshbpatel
@Pareshbpatel 3 жыл бұрын
Great introduction to React Development. Thanks, Kyle {2021-08-14}
@noumanulhaq4705
@noumanulhaq4705 2 жыл бұрын
Bro believe me it's not simplified. You just made my concept complicated. U messed it up at todo and todos. U just made it simply complicated.
@a4317978
@a4317978 2 жыл бұрын
there is a mistake in the tutorial´s title.. "todo" is missing..
@jaymunk262
@jaymunk262 2 жыл бұрын
Second year in a row watching this before my exams
@dainismichel
@dainismichel 6 ай бұрын
Before watching, prepare a bottle of vodka and a shot glass. You have to take a shot every time Kyle says the word "todo!"
@RaldinCasidar
@RaldinCasidar 2 жыл бұрын
Now, I learned the TODO language
@tylerdash5724
@tylerdash5724 3 жыл бұрын
At 18:29, I just set the id key to todos.length + 1 for a unique id every time.
@simoncarriere4086
@simoncarriere4086 3 жыл бұрын
Whats the downside of doing this ?
@nileshgite1059
@nileshgite1059 2 жыл бұрын
Awesome. unbelievable.
@luaneaquino7835
@luaneaquino7835 4 жыл бұрын
Thank you! I learned a lot about react
@shizasiddiqui1689
@shizasiddiqui1689 3 жыл бұрын
You're brilliant
@jaymathew5129
@jaymathew5129 2 жыл бұрын
Lol I'm really new to coding/ programming. I can safely say you lost me at todo. Thanks for the video I'm sure it'll all make sense in the future.
@meowd-predator7050
@meowd-predator7050 2 жыл бұрын
Set playback speed to 2x, and learn react in 15 min.. btw, nice tutorial..
@davidconnelly
@davidconnelly Жыл бұрын
Downloading a third party library to generate a random string? Is that normal?
@hackathon-bestmostar273
@hackathon-bestmostar273 3 жыл бұрын
bro ur amazing
@alexl4074
@alexl4074 4 жыл бұрын
great tut as usual :)
@yuvaraj9740
@yuvaraj9740 2 жыл бұрын
my mind is just todo todo todo todo todooo
@brandendernell5914
@brandendernell5914 3 жыл бұрын
Nice tutorial! Now I keep asking myself, what if my To-do list contains things I don't want to do? xD
@ShaidaMuhammad
@ShaidaMuhammad 4 жыл бұрын
Man I can do one thing at a time. Listen to you or watch you.
@lemargreen6049
@lemargreen6049 3 жыл бұрын
Thank you, for taking the time todo this
@derekcoxii2771
@derekcoxii2771 3 жыл бұрын
Underrated comment
@bennysmith4557
@bennysmith4557 3 жыл бұрын
I heared todo like 2000 times
@trevoreedockery7922
@trevoreedockery7922 3 жыл бұрын
haha
@vizulefllry
@vizulefllry 3 жыл бұрын
It took me a little while to appreciate how good this comment is.
@ahmadasili7387
@ahmadasili7387 3 жыл бұрын
@@bennysmith4557 what you wanna do is To do the Todo do doing
@tigercore
@tigercore 5 жыл бұрын
The word Todo has lost all meaning
@sneezydeezymcdeluxe7015
@sneezydeezymcdeluxe7015 5 жыл бұрын
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.
@woutjuh13
@woutjuh13 5 жыл бұрын
Maybe they don’t know what else to do
@umeshkayastha1415
@umeshkayastha1415 5 жыл бұрын
@@woutjuh13 lol
@jovialdeveloper3908
@jovialdeveloper3908 4 жыл бұрын
Todo, I don't think we're in Kansas anymore.
@nslookup2011
@nslookup2011 4 жыл бұрын
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
@jardinek2121
@jardinek2121 3 жыл бұрын
QUICK TIP: Make sure your playback is at least 1.5 times speed, if you want to become fluent in Todo language.
@bvaroni
@bvaroni 3 жыл бұрын
lmao
@yechielbabani1726
@yechielbabani1726 3 жыл бұрын
Lol
@simonlicman5166
@simonlicman5166 2 жыл бұрын
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
@floridadude7981
@floridadude7981 2 жыл бұрын
I don't think were in Kansas anymore, todo... I mean todo.
@re8nifle
@re8nifle Жыл бұрын
The word "todo" has lost all meaning for me!
@X-13-X
@X-13-X 3 жыл бұрын
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.
@DaKingOfBall23
@DaKingOfBall23 3 жыл бұрын
yup
@TheSoybean3r
@TheSoybean3r 3 жыл бұрын
Thank you
@JoeDaveycrockettsoundlabs
@JoeDaveycrockettsoundlabs 2 жыл бұрын
Much obliged
@ronjohnson3967
@ronjohnson3967 2 жыл бұрын
Thank YOU!!
@shanegracias8501
@shanegracias8501 2 жыл бұрын
thanks
@hansschuijff
@hansschuijff 2 жыл бұрын
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.
@AlanJaison1
@AlanJaison1 2 жыл бұрын
You sir are a legend! was stuck on problem 2 for so long
@ourcore
@ourcore 2 жыл бұрын
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
@ourcore
@ourcore 2 жыл бұрын
@@zachboemer4008 Just disabling strict mode and using the original `if (storedTodos) setTodos(storedTodos)` fixed it for me
@suckerformimi
@suckerformimi 2 жыл бұрын
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.
@timothy3882
@timothy3882 2 жыл бұрын
thanks to you
@kamel3d
@kamel3d 2 жыл бұрын
As a dev you should have used better names instead of calling everything todo
@sandpaperunderthetable6708
@sandpaperunderthetable6708 2 жыл бұрын
I think he knows what todo
@lacherdaniel
@lacherdaniel 4 жыл бұрын
take a shot everytime he says todo
@The_Soup_Wizard
@The_Soup_Wizard 4 жыл бұрын
No thank you, I would like to live.
@kosemekars
@kosemekars 4 жыл бұрын
Am now an alcoholic
@ashleywilkonson386
@ashleywilkonson386 4 жыл бұрын
That wasn't a good idea, I am writing this from heaven. JK! In hell.
@silentxcure
@silentxcure 3 жыл бұрын
@@ashleywilkonson386 you really weren't supposed "to do " that
@ff-tg2vy
@ff-tg2vy 3 жыл бұрын
not everyone is alcoholic homeless piss of shit
@confessor3380
@confessor3380 Жыл бұрын
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( );
@votoran9157
@votoran9157 Жыл бұрын
what a chad
@birbcoding
@birbcoding 2 жыл бұрын
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:
@MarcelDerWeltenbummler
@MarcelDerWeltenbummler Жыл бұрын
Thank both of you I couldn't find a solution
@Almaburger
@Almaburger 5 ай бұрын
life saver. ty
@SameenIslam
@SameenIslam 4 жыл бұрын
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.
@marknguyen606
@marknguyen606 4 жыл бұрын
my head hurts.. i had to pause to see where it all connects.
@shangshi6286
@shangshi6286 4 жыл бұрын
@@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.
@kirarevcrow
@kirarevcrow 4 жыл бұрын
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.
@luisaceo00
@luisaceo00 4 жыл бұрын
Absolutely agree. Perhaps a better approach would have been to use suffixes e.g. todo_prop, todo_item or something among those lines.
@StorybookFantasia
@StorybookFantasia 4 жыл бұрын
@@shangshi6286 ..you can reduce the play back speed !!
@robertn4996
@robertn4996 Жыл бұрын
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.
@WestyFilms
@WestyFilms Жыл бұрын
Head First is actually a great series to get your start in most programming / scripting languages.
@lukas.webdev
@lukas.webdev Жыл бұрын
Congratulations! 😉
@ElMocoo
@ElMocoo 2 жыл бұрын
I’m going to make a tutorial on React… todotodotodotodotodotodo
@garagavia
@garagavia 4 жыл бұрын
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.
@JacobAuthier
@JacobAuthier 2 жыл бұрын
todo todo todo
@CrazyPlumGaming
@CrazyPlumGaming 2 жыл бұрын
Came here to say the same thing. Trying to differentiate between 4 different “todos” names and learning what each one does was very challenging.
@kodiak809
@kodiak809 2 жыл бұрын
@@CrazyPlumGaming that's what you get when you skipping Javascript lessons, its easy to see it if you know basic javascript
@CrazyPlumGaming
@CrazyPlumGaming 2 жыл бұрын
@@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.
@kodiak809
@kodiak809 2 жыл бұрын
@@CrazyPlumGaming in what world is english lesson relevant to programming?
@KETANRAMTEKE
@KETANRAMTEKE 4 жыл бұрын
Amount of topics packed in this 30 minutes is impressive
@r_lonef
@r_lonef Жыл бұрын
these
@WantOxide
@WantOxide Жыл бұрын
Also the amount of useless stuff is great
@reactexpress
@reactexpress Жыл бұрын
+1
@eobardthawne6903
@eobardthawne6903 7 ай бұрын
​@@WantOxide Is useLess also a react hook?
@yojona
@yojona 4 жыл бұрын
Video speed 2X: Learn React in 15 minutes ;)
@vik8860
@vik8860 4 жыл бұрын
that would be an example of what not "to do".
@mounirmoutawakil1078
@mounirmoutawakil1078 4 жыл бұрын
Lmao
@patrickwalsh9444
@patrickwalsh9444 4 жыл бұрын
1.25x ain't so bad, just sayin 😁
@dynerushd7517
@dynerushd7517 4 жыл бұрын
Install video speed controller and put it to 10x to "Learn React In 3 Minutes"
@nemethricsi
@nemethricsi 4 жыл бұрын
@@patrickwalsh9444 Learn React in 24 minutes! :)
Build A Currency Converter In React
26:37
Web Dev Simplified
Рет қаралды 128 М.
Learn React With This One Project
42:38
Web Dev Simplified
Рет қаралды 787 М.
GIANT Gummy Worm Pt.6 #shorts
00:46
Mr DegrEE
Рет қаралды 95 МЛН
Как мы играем в игры 😂
00:20
МЯТНАЯ ФАНТА
Рет қаралды 3,2 МЛН
Learn useState In 15 Minutes - React Hooks Explained
15:45
Web Dev Simplified
Рет қаралды 1,1 МЛН
The Most Important Skill You Never Learned
34:56
Web Dev Simplified
Рет қаралды 207 М.
Mongoose Crash Course - Beginner Through Advanced
33:36
Web Dev Simplified
Рет қаралды 470 М.
React JS Explained In 10 Minutes
10:00
Dennis Ivy
Рет қаралды 293 М.
React Tutorial For Beginners
43:19
developedbyed
Рет қаралды 849 М.
Beginner React.js Coding Interview (ft. Clément Mihailescu)
36:31
Ben Awad
Рет қаралды 2,1 МЛН
React Tutorial for Beginners
1:20:04
Programming with Mosh
Рет қаралды 3,2 МЛН
Learn Express JS In 35 Minutes
36:03
Web Dev Simplified
Рет қаралды 815 М.
5 JavaScript Concepts You HAVE TO KNOW
9:38
James Q Quick
Рет қаралды 1,4 МЛН
Every React Concept Explained in 12 Minutes
11:53
Code Bootcamp
Рет қаралды 665 М.
GIANT Gummy Worm Pt.6 #shorts
00:46
Mr DegrEE
Рет қаралды 95 МЛН