10 React Hooks Explained // Plus Build your own from Scratch

  Рет қаралды 1,355,490

Fireship

Fireship

Күн бұрын

React hooks provide a highly-efficient was to tap into framework features and organize reactive logic. Learn how use every built-in React hook fireship.io/courses/react-nex...
00:00 Why React Hooks?
02:20 useState
03:50 useEffect
05:55 useContext
06:58 useRef
07:58 useReducer
09:27 useMemo
10:12 useCallback
10:40 useImperativeHandle
11:18 useLayoutEffect
11:43 useDebugValue & Custom Hooks
#webdev #js #react
Install the quiz app 🤓
iOS itunes.apple.com/us/app/fires...
Android play.google.com/store/apps/de...
Upgrade to Fireship PRO at fireship.io/pro
Use code lORhwXd2 for 25% off your first payment.
My VS Code Theme
- Atom One Dark
- vscode-icons
- Fira Code Font

Пікірлер: 850
@albirtarsha5370
@albirtarsha5370 3 жыл бұрын
The React documentation should link to this video.
@day2dayja110
@day2dayja110 3 жыл бұрын
That google listening to your thoughts and the algo working in the background lol
@TheSaintsVEVO
@TheSaintsVEVO 3 жыл бұрын
This channel's videos aren't beginner friendly.. It only helps people who are already familiar with this stuff.
@rafadydkiemmacha7543
@rafadydkiemmacha7543 3 жыл бұрын
@@TheSaintsVEVO not in this case. This video is just a copy of the official (poor) docs.
@roy1299
@roy1299 3 жыл бұрын
@@TheSaintsVEVO not really. This video is much better. The docs is.. shall I say confusing
@jasonlough6640
@jasonlough6640 3 жыл бұрын
@@TheSaintsVEVO If you find something you dont know, research it and come back. This applies no matter what level youre at. Id say a beginner would get more out of this video than an expert.
@RohitSharma-vq2gn
@RohitSharma-vq2gn 3 жыл бұрын
Hours of react knowledge distilled in 10 mins. Felt like stealing. Thanks man, great work!
@key2010
@key2010 2 жыл бұрын
ever noticed stolen things taste better than bought? ... except bricks... those taste the same
@astrophilo2000
@astrophilo2000 2 жыл бұрын
facts, time is money bro that's the reason and we are lazy asf
@kimdev11
@kimdev11 Жыл бұрын
i really thought i would be learning react hooks in 1hr but this guy did in 10 mins, superb!
@WellActualllyyy
@WellActualllyyy 4 ай бұрын
nice man i still don’t get it
@jeremey2072
@jeremey2072 Ай бұрын
@@WellActualllyyy it will make sense eventually, just keep coding
@CodeSketched
@CodeSketched 3 жыл бұрын
Learned more about hooks in this single video than all my attempts to learn about them over the past several years!
@rafadydkiemmacha7543
@rafadydkiemmacha7543 3 жыл бұрын
Interesting, because this video doesn't say anything more than the official guide.
@CodeSketched
@CodeSketched 3 жыл бұрын
@@rafadydkiemmacha7543 you're right, but the official documentation never felt welcoming enough to read through all the hooks.
@rafadydkiemmacha7543
@rafadydkiemmacha7543 3 жыл бұрын
@@CodeSketched I completely agree and in my opinion, this video is not welcoming neither. One of the worst ones so far.
@shashikanthp3145
@shashikanthp3145 3 жыл бұрын
@@rafadydkiemmacha7543 MOVE ON Hater
@rafadydkiemmacha7543
@rafadydkiemmacha7543 3 жыл бұрын
@@shashikanthp3145 so it's not allowed to express opinions anymore, sheep?
@ImVengeance
@ImVengeance 3 жыл бұрын
One thing alot of people miss is that on useState in the setter you can actually pass a function to get the prev state value you for say updating a counter which is the correct way. For example setCount(prevCount => prevCount + 1). if you where to call setCount and try modify the value based on the current count value the state would be modified based on the value at that render time. If you call setCount(count + 1) twice it would only infact increase the value by one as both calls would get the prev rendered value and overwrite each other. Hope this helps
@souvikchakraborty9900
@souvikchakraborty9900 9 ай бұрын
wow i knew that we should use prevcount but never truly knew what could go wrong if i didn't. Thank you man.
@KhiemKimDoPkmn
@KhiemKimDoPkmn 3 ай бұрын
aaaaaAaAaa​@@souvikchakraborty9900
@usmanmir5663
@usmanmir5663 3 жыл бұрын
You have me *”hook”* ed to this channel.
@Onserio.
@Onserio. 3 жыл бұрын
Boooooooooooo!
@everythingisfine9988
@everythingisfine9988 3 жыл бұрын
Yeeeessssssssss!
@jessejamison128
@jessejamison128 3 жыл бұрын
go ahead and clock out for me
@natman882001
@natman882001 3 жыл бұрын
now thats how you useContext()
@69bruh
@69bruh 3 жыл бұрын
HAHAHA bye.
@AjeyChandhan
@AjeyChandhan 3 жыл бұрын
You explained the whole feature set of the major change React has had in years in 13 minutes! That's just unbelievably awesome! ❤️
@djvanschaik
@djvanschaik 2 жыл бұрын
It is insane how well you explained all these hooks in not a lot of time without it seeming rushed/barely brushed over. Thank you!
@Surya-np1bb
@Surya-np1bb Жыл бұрын
When I wanna know about a topic and fireship has already made a video about it is the best feeling. This guy can concisely teach any topic.
@Jorschm
@Jorschm Жыл бұрын
Wow, It was actually easy to understand the core concept of the hooks in just 10min, I have seen 40min that could not explain a hook as good as this video. Great work.
@codinginflow
@codinginflow 2 жыл бұрын
now I'm happy that I started learning React in 2022 too lol. I just skipped this whole class thing.
@thelonercoder5816
@thelonercoder5816 Жыл бұрын
same lol. Class components are so confusing to me but hooks makes it sooo much easier to understand lol.
@cycla
@cycla Жыл бұрын
@@thelonercoder5816 haha yeah! felt good we can just skip what was a major pain in the butt for a lot of devs in the past
@CST1992
@CST1992 21 күн бұрын
You want to know them, just in case you need them. I've been using React since 2019 and I have started with class components. They are, you can say, just a more explicit way of doing the same thing you are doing with hooks. For me it's backwards: instead of getting to use a separate function componentWillUnmount(), I have to remember that the function returned from useEffect() does the same thing.
@zackyang123
@zackyang123 3 жыл бұрын
This is flawless, clear, concise, and thorough. You are an exceptional natural teacher.
@sathkur9
@sathkur9 3 жыл бұрын
This video is must of every react developer. He made everything so simple and easy to understand and that to about so much of react features in just 13 minutes.
@AryanLokar
@AryanLokar 3 жыл бұрын
The amount of information your videos consist is unbelievable, really appreciate your efforts
@kawsar.130
@kawsar.130 Жыл бұрын
One of the best explanations of React Hooks. Thank you for good stuffs 👌
@mokroargra7277
@mokroargra7277 3 жыл бұрын
Been working with react over 9 months now, learn something new everytime I watch one of your react videos. 🤯
@vikas7769
@vikas7769 2 жыл бұрын
Bro I need some help
@CodingAfterThirty
@CodingAfterThirty 3 жыл бұрын
Another awesome video. I love React hooks. I just recently started diving into writing custom hooks. It has been an excellent way to create reusable functionality as well as not stuffing all the logic in one file. Thanks for this video.
@himalayagupta7744
@himalayagupta7744 2 жыл бұрын
Well done man , I didn't expect this much clarity in just 13 minutes, but you explained everything perfectly. Thanks
@snghnishant
@snghnishant 3 жыл бұрын
This is really helpful for me. I started learning React without understanding component life cycle completely and was struggling a bit. Now I can useRef() of this video. Thanks!
@devmeta1478
@devmeta1478 2 жыл бұрын
Dude I'm in love with this channel, speed is perfect, finally someone who is not wasting 5 mins begging for subscribe, or speaking about his life or unrelated topics... And someone who is not writing code, testing and debugging in front of us... this is just perfect srsly... Keep up the perfect work!
@reda_el
@reda_el 3 жыл бұрын
Wow, I had a really hard time figuring out precisely how hooks were working until I found this video. It's so clear and explaining the fundamentals (the key). I'm literally looking for a way to join any newsletter you have because I love the way you communicate complex principles.
@Technoholicplus
@Technoholicplus 3 жыл бұрын
This is is the only video that not only cleared my hooks concept, but also shows the shortcut method to write eventhandling and state change in one line i.e. ( setNum(num+1)}>plus ) Thank you so much.
@s4lmon134
@s4lmon134 2 жыл бұрын
this is the most amazing, concise, digestible video i've ever watch. Huge props!
@muhammadahmedjaved7691
@muhammadahmedjaved7691 3 жыл бұрын
never ever have I seen someone explaining complex things in simple and short words like you do you are a professional at explaining things
@snansahmarov1524
@snansahmarov1524 3 жыл бұрын
I watched hours video for understanding React Hooks. This video did unbelievable, so easy, just 13 minutes. Thank you from Azerbaijan.
@HugoSanchez-kd7qz
@HugoSanchez-kd7qz 23 күн бұрын
Thank you for this! Used this a refresher and absolutely loved it. Wish we had a few more examples of each hook.
@fithamlakfikrie4657
@fithamlakfikrie4657 Жыл бұрын
The great ability of high-level explanations about general and wide concepts in only 13 minutes. thank you!
@_romeopeter
@_romeopeter 2 жыл бұрын
This is awesome 🔥 I've been preparing myself for upcoming interviews I'm going to have and this has explained reacts hooks quite for me, it'll come in handy when asked.
@wiz7903
@wiz7903 3 жыл бұрын
You always manage to put out a video that i just need in that exact moment. Simply amazing. Keep up the good work
@steelwolf180
@steelwolf180 2 жыл бұрын
Really easy to understand and helps to point me in the right direction. For a problem, I was stuck on solving a UI component not updating by itself till I click on another component.
@williamboshi1855
@williamboshi1855 3 жыл бұрын
It's definitely a tough chunk to digest but it's really interesting to have a peak at what react is since I always looked the other way toward angular and vue
@SportzMobile
@SportzMobile 9 ай бұрын
Dude, u rock. If there a medal for crash course (just before an interview), this is it !!! I have an interview tomorrow and I just can't thank you enough for the revision material. Rock on !!
@alexandergeorgesquire220
@alexandergeorgesquire220 4 ай бұрын
How did the interview go?
@ffelaar
@ffelaar 2 жыл бұрын
you are ridiculously good at explaining things succinctly in a short amount of time - thank you for this great content.
@elhaambasheerch7058
@elhaambasheerch7058 Жыл бұрын
Easily the perfect mix of most informative and fun coding channel on the web.
@yuliavasylenko8603
@yuliavasylenko8603 2 жыл бұрын
So simple and useful! Thanks a lot for explaining these things in the most understandable manner.
@crimsoncad3230
@crimsoncad3230 3 жыл бұрын
Angular bois finally got some love.
@pharmokan
@pharmokan 3 жыл бұрын
Dozens of us are so happy. DOZENS!
@juniordev4190
@juniordev4190 3 жыл бұрын
@フルブライトケネス what r u talking about? V12 has just launched.
@ryanmamboudjemtchemeu4289
@ryanmamboudjemtchemeu4289 2 жыл бұрын
The best React Hooks video I've seen so far. Thank you for providing a such compelling video.
@devsauce
@devsauce 3 жыл бұрын
- 1:34 - Ben Awad has entered the chat
@rain-techstudio2567
@rain-techstudio2567 2 жыл бұрын
This is amazingly easy to understand with just 10 minutes!! Thanks a lot great man!
@kocraft137
@kocraft137 3 жыл бұрын
Love the pace you have in your videos. And the visuals is just stunnig
@Alex-bc3xe
@Alex-bc3xe Жыл бұрын
most clear, concise and simple explanation on hooks.
@programmingpython584
@programmingpython584 Жыл бұрын
You youtube channel is simply dream come true for a developer. Short videos, great explanations, etc. It is just awesome
@manibarathi08
@manibarathi08 3 жыл бұрын
Even thought I know about hooks...It's amazing that you are able to give so much value and information in such a short video...Enjoyed ever bit of it...💙
@felipecabreira4321
@felipecabreira4321 Жыл бұрын
I always come back to this video to a fast/clean explanation of react hooks ! Thanks for the content my man ! Amazing :)
@ombhagwani7407
@ombhagwani7407 7 ай бұрын
i was here to revise my concepts and you got it all covered in 13mins , thanks a lot .!!
@zarghamaijaz5933
@zarghamaijaz5933 3 жыл бұрын
This is the only video i have found helpful. it's been a week and i have been struggling with react hooks. I am used to writing classes. Hooks feel very intimidating to me but after watching this video, i feel confident in using hooks instead of writing classes. Thank you for such an easy explanation
@Fireship
@Fireship 3 жыл бұрын
Glad it helped!
@MrRAHUL7777777
@MrRAHUL7777777 3 ай бұрын
You completed the 3 months topic in few minutes . Great work 👏
@Chrisknot94
@Chrisknot94 3 жыл бұрын
Niiice another concise hook video in plain english. This is why this is my favourite dev channel 👍🏻👌🏻
@McMurchie
@McMurchie 2 жыл бұрын
This was amazing, it took me over an hour to write down the notes so much knowledge
@anth0ni33
@anth0ni33 2 жыл бұрын
Wonderful information in just 10mins. You're a national treasure!!!
@gracewood6768
@gracewood6768 3 жыл бұрын
best of the best. I never understood each of them but now I got a grasp about it.!
@nikosroom1913
@nikosroom1913 2 жыл бұрын
This is literally the best youtube channel I have every found. THANK YOU!
@vikram87in
@vikram87in 2 жыл бұрын
It's so amazing how this guy can pack so much data into such a small video.. respect. Great video 😍😍
@harikrishnanmidhun1644
@harikrishnanmidhun1644 7 ай бұрын
Thanks ! This is so comprehensive and entertaining.
@athreyamurali1439
@athreyamurali1439 3 жыл бұрын
Fantastic video! This makes React so approachable. Love it
@n0ame1u1
@n0ame1u1 2 жыл бұрын
I just took an entire college course focused on React, and I learned way more from this video
@caiooliveira6918
@caiooliveira6918 3 жыл бұрын
Awesome guide! You explained well, and took your time showing it! I like this video format better
@gautampatadiya6096
@gautampatadiya6096 2 жыл бұрын
Many videos I saw but this one is simple specific and easy to understand… thanks
@slimzztv9963
@slimzztv9963 2 жыл бұрын
I have watched this like 17 times and I’m learning each time again lol thank you
@hobbiesandmore5633
@hobbiesandmore5633 2 жыл бұрын
I stumbled on this video but I’m glad I did! I was looking for ways to implement hooks in my program but had no idea what to do with them. When I watched this video I had a “Oh, THAT’S what it does” moment occur multiple times. Thanks for making this!
@huseynfy
@huseynfy 2 жыл бұрын
Very easy to understand and very valuable video for beginners! Thanks man!
@akashthoriya
@akashthoriya 3 жыл бұрын
Saved my hours to prepare for interview. Amazed by this video. Thanks a lot
@shivanigaddagimath6105
@shivanigaddagimath6105 2 жыл бұрын
Hi Akash! Are you still looking for job opportunities currently ? Would you be interested in exploring a job opportunity in web development?
@FaruhPaerhati
@FaruhPaerhati 3 жыл бұрын
My god, you explained the concepts and more in much better fashion than toiling over the docs for a week
@pathumjayasuriya5902
@pathumjayasuriya5902 3 жыл бұрын
Thanks for quick but clear intro on react hooks.
@wardenpataski2882
@wardenpataski2882 3 жыл бұрын
I kinda struggled to understand how to create a custom hooks before, but now I understand it after watching your explanation thank you :)
@kemuelcraig
@kemuelcraig 3 жыл бұрын
Literally researching react hooks today only for you to release this, fireship with the clutch content lol
@ejthecollector
@ejthecollector Жыл бұрын
Great/quick explanations of each hook, super helpful thanks
@sebastiancordoba437
@sebastiancordoba437 3 жыл бұрын
Omg, today i was thinking of reviewing react hooks and this video show up, thanks!
@edwardarinin9678
@edwardarinin9678 3 жыл бұрын
same tho...
@irfanshaik1302
@irfanshaik1302 3 жыл бұрын
Lol.... same!!!
@amarmohammed5644
@amarmohammed5644 2 жыл бұрын
brilliant to watch just before a interview :)
@Skalexsong
@Skalexsong 3 жыл бұрын
This is really makes the reactive feature looks very easy, thanks :)
@AbhigyanGautam
@AbhigyanGautam 3 жыл бұрын
I am learning React and this is the video I needed
@rjborba
@rjborba 3 жыл бұрын
Very very good way to explain something. Congratulations
@ozchinesefriendship4316
@ozchinesefriendship4316 2 жыл бұрын
Super clear and easy to follow. Thanks mate
@elabro71
@elabro71 Жыл бұрын
easy to understand,good hook summary for begginers !
@chektek_
@chektek_ 3 жыл бұрын
Awesome content! Would love to see a full Angular life-cycle hook video!
@mfranciscoarrigoni
@mfranciscoarrigoni 3 жыл бұрын
Excellent video! I appreciate very much for the commitment to share such useful information 🙌
@shaheenumar4926
@shaheenumar4926 3 жыл бұрын
Every second is worth watching this channel.❤️
@brittmcginnis4001
@brittmcginnis4001 3 жыл бұрын
Great tutorial! Super clean and concise.
@remofischer4969
@remofischer4969 3 жыл бұрын
Thanks for the Video. I know now that i will stay with Svelte.
@3mro_coding
@3mro_coding 2 жыл бұрын
Maan! I love taking tour in your channel you deliver clean and conscious contents.
@hroman_codes
@hroman_codes 3 жыл бұрын
This was amazing and to the point. Thank you 🙏🏻
@saqlainalvi5485
@saqlainalvi5485 2 жыл бұрын
I wish I had seen this video when I began learning hooks. Took me months of study and practice to understand them fully. This would have been a good entry point. Most tutorials fall short.
@nomtijorti
@nomtijorti 3 жыл бұрын
Saw Angular Logo with caption (best framework ever).. that's why I'm subscribed. lol
@pcastillov
@pcastillov 4 ай бұрын
This video really helped me a lot, Im doing the Meta certification but they guy explaining this on the course sounds like an NPC. Thank you Jeff!
@emstudios14
@emstudios14 3 жыл бұрын
Excellent video on React Hooks.
@jojacvonkekebau3686
@jojacvonkekebau3686 3 жыл бұрын
The timing on this video... Thank you!
@vishmapdas7898
@vishmapdas7898 2 жыл бұрын
I have a feeling that you will add much value to my life. Liked and Subbed.
@dannyman2200
@dannyman2200 3 жыл бұрын
Love the videos dude, especially how they have a certain flow to them, it would be super interesting if you could make a video on you making one of your normal tutorials??
@kurtthorsten4463
@kurtthorsten4463 2 жыл бұрын
srsly your content is insane man. thank you thank you thank you
@johnnygotti1568
@johnnygotti1568 Жыл бұрын
I never figured out useContext until now... thank you so much man
@zacktaylor1143
@zacktaylor1143 2 жыл бұрын
Your UseEffect explanation was brilliant.
@tarunkr5352
@tarunkr5352 Жыл бұрын
short and simple explaination that's what devs want. this is just that.
@ByteBuf
@ByteBuf 9 ай бұрын
Amazing work, learned more here than I have in years!
@EduardKaresli
@EduardKaresli 3 жыл бұрын
For non-native English speakers, I'd recommend watching the video at 0.75 speed. Pretty dense (yet high quality) information.
@javadmh7827
@javadmh7827 2 жыл бұрын
Short & Helpful, I like it
@chilakalajakeer9957
@chilakalajakeer9957 3 жыл бұрын
Thanks , that was quick & helpful
@usmanmir5663
@usmanmir5663 3 жыл бұрын
A video about React Native! And Compare it with Flutter.
@monfernape
@monfernape 3 жыл бұрын
He actually has one created.
@day2dayja110
@day2dayja110 3 жыл бұрын
Where was this video a year ago!!!!!! EXCELLENT!!!!!! 10000/10
@ujjwalchetan4907
@ujjwalchetan4907 2 жыл бұрын
Very crisp and precise as always 👌👌
@rpf23543
@rpf23543 10 ай бұрын
Awesome content!!!! Please more of this kind! Thank you so much!
@DEVDerr
@DEVDerr 3 жыл бұрын
Even tho Hooks are extremely amazing and made my code sooooooooo much cleaner, I cannot go through the fact that a lot of them are horribly named. Glad that I can always rename them (in my private project ofc - in company where people collaborate, everything should remain originally named to not make unnecessary confusion in shared workspace). If I would be honest - only your video does cover them very well. Amazing job as always 👍❤️
Learn useState In 15 Minutes - React Hooks Explained
15:45
Web Dev Simplified
Рет қаралды 1,1 МЛН
Каха ограбил банк
01:00
К-Media
Рет қаралды 6 МЛН
Василиса наняла личного массажиста 😂 #shorts
00:22
Денис Кукояка
Рет қаралды 7 МЛН
10 React Antipatterns to Avoid - Code This, Not That!
8:55
Fireship
Рет қаралды 716 М.
10 regrets of experienced programmers
8:16
Fireship
Рет қаралды 1 МЛН
How to OVER Engineer a Website // What is a Tech Stack?
11:20
Fireship
Рет қаралды 2,3 МЛН
JavaScript: How It's Made
10:54
Fireship
Рет қаралды 870 М.
React JS Explained In 10 Minutes
10:00
Dennis Ivy
Рет қаралды 238 М.
Learn React Hooks: useEffect - Simply Explained!
14:07
Cosden Solutions
Рет қаралды 114 М.
React Hooks Course - All React Hooks Explained
1:26:21
PedroTech
Рет қаралды 1 МЛН
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 454 М.
📦Он вам не медведь! Обзор FlyingBear S1
18:26
Cadiz smart lock official account unlocks the aesthetics of returning home
0:30
Урна с айфонами!
0:30
По ту сторону Гугла
Рет қаралды 6 МЛН
Samsung S24 Ultra professional shooting kit #shorts
0:12
Photographer Army
Рет қаралды 25 МЛН