All React Hooks Explained in 2 Hours | Complete React Hooks Tutorial with Example 2024

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 178

  • @GreatStackDev
    @GreatStackDev  4 месяца назад +16

    👉Get Certified for react hooks course: quiz.greatstack.dev/rhks

  • @vakyz5333
    @vakyz5333 2 месяца назад +12

    In my 2 years in React JS. This is my first time I understand react hooks really well. Thank you for your well explained tutorial.

    • @bonfaceosuka
      @bonfaceosuka 11 дней назад +1

      Hahahaa I once saw a meme about developers coding and not knowing what they were doing .

    • @vakyz5333
      @vakyz5333 11 дней назад +2

      @@bonfaceosuka not all the project I went are using react hooks. In my previous jobs from 2019 to 2021. I just got started again to refresh my knowledge. My recent skill set is low code which is more convenient to implement than traditional. I understand your point. But laughing at me is not okay.

  • @Leesdjo
    @Leesdjo 4 месяца назад +14

    I heard this voice when I started learning HTML CSS and JavaScript and now I am still watching even though I am capable of creating apps on my own. I want to thank him for his input in my life as far as my career as web developer is concern.

    • @GreatStackDev
      @GreatStackDev  4 месяца назад +1

      I'm glad to hear that and proud to have you as our subscriber. Thanks for your comment. 😊

    • @Avontime
      @Avontime 2 месяца назад

      @Leesdjo Thats great. can you tell me how many year have you been learn web dev until now?

  • @DeveshShantasha
    @DeveshShantasha 4 часа назад

    Well Explained... Really Appreciate to making React hooks very simple. This is what we require as a professional to learn the things quickly.

  • @rajesmaheshwari
    @rajesmaheshwari 3 месяца назад +14

    00:02 React hooks simplify functional components to work like class components
    03:08 Demonstration of changing and updating colors in React
    09:51 Using useState hook to manage state variables and update UI dynamically
    13:07 Explanation of creating state variables and transitioning to state objects
    19:53 Updating state based on previous state using the spread operator.
    22:48 Explanation on updating counter value by one and four
    28:21 Explanation of the use effect hook in React components
    31:08 Implementing a timer function using useEffect
    36:13 Understanding the use of useEffect hook in React
    38:52 Using useRef hook to access and modify DOM elements
    44:28 Using useRef to prevent unnecessary re-renders
    47:23 Using useRef to maintain state without triggering component rerender
    53:02 Explaining the use of useRef, useMemo, and useCallback hooks in React.
    56:00 Implementing power function in React Hooks
    1:01:42 Using useMemo hook to prevent unnecessary recalculation of the cube function
    1:04:21 UseCallback Hook caches function between renders
    1:10:10 Using memo method to optimize rendering
    1:13:01 Explanation on function comparison using equality check.
    1:18:17 Using useEffect to prevent unnecessary renders
    1:20:46 Using props to pass data at every component level can be painful.
    1:26:34 Adding context support in React project
    1:29:49 Mounting components and consuming context in React app
    1:35:29 useContext hook for managing global data and sharing data across components
    1:38:07 Creating a counter using useState and useReducer hooks.
    1:44:01 Dispatch method updates state using reducer function
    1:47:08 Use reducer function for state management
    1:53:01 Using useReducer to efficiently update state variables for different actions.
    1:55:40 Illustrating how useLayoutEffect executes before rendering
    2:01:24 Understanding useLayoutEffect and useEffect Hooks in React
    2:03:54 Demonstration of using React Hooks to manage state and local storage data
    2:09:17 Implementing custom React Hook to handle local storage operations
    2:12:13 Creating and using custom hooks with local storage
    2:17:45 Thank you for watching

  • @chris_bum
    @chris_bum 16 дней назад +4

    Thanks Great Stack❤. And also teach express js, node js, mangodb tutorial

  • @divyadharshini6916
    @divyadharshini6916 5 месяцев назад +12

    This tutorial is really helpful and usefull for beginners ❤️

  • @homawasimkhan3845
    @homawasimkhan3845 3 месяца назад +3

    The way u explain is so amaizing ..ur great teacher.....lots of thanxs

    • @GreatStackDev
      @GreatStackDev  2 месяца назад

      Glad you liked it! Thank you. 😊

  • @ayyu_MNNIT_A
    @ayyu_MNNIT_A Месяц назад

    Its a real Gem !! best explaination on hooks, great way of teaching-- starts with a problem --> makes us realise why we need any particular hook--> explains it clearly

  • @Kids_1_Zone
    @Kids_1_Zone 5 месяцев назад +10

    Post React Full Course in one video sir❤❤❤

  • @LogicLoomer07
    @LogicLoomer07 3 месяца назад +1

    Thanks, bro. I've learned a lot from your tutorials, and I appreciate your clear explanations.

  • @IroshanaRavishan
    @IroshanaRavishan Месяц назад

    This content is really helpful for anyone who is looking for React Hooks or even the beginners. Thanks for sharing this AMAZING Simple content...!

  • @monikadewangan885
    @monikadewangan885 Месяц назад +2

    Hi @greatStack, javascript, react , react hooks tutorials are very very informative, thank you so much for such a great videos.
    could you please please make a video on node js, express js and mongodb .
    we will really grateful.

  • @powerofthoughts_tamil
    @powerofthoughts_tamil 5 месяцев назад +4

    Thank you so much GreatStack Team. The greatest of all time❤❤️🥰. Love from Srilanka🇱🇰

  • @_ashuvn
    @_ashuvn 2 месяца назад +2

    very beautifully crafted videos 🙏 you are our custom Hook 😊😊🎉

    • @GreatStackDev
      @GreatStackDev  2 месяца назад

      Thank you so much! 😊 Keep leaning.

  • @phenixbd
    @phenixbd 4 дня назад

    Thanks a lot. clear and easy presentation

  • @AhmadShah-wd3yy
    @AhmadShah-wd3yy 5 месяцев назад +1

    One of the perfect tutorial that i found i have watched! this tutorial is amazing and really intresting. thank you for making such kind of tutorial.

  • @bonfaceosuka
    @bonfaceosuka 9 дней назад

    Thank you so much for this video , it has been of great help to me.

  • @MDMS-tk1zu
    @MDMS-tk1zu 5 месяцев назад +4

    Brother, I can confidently say that this video is one of the most complete and accurate for learning the hooks in the react library, thank you
    😊😊👏🙏🙏

  • @christophermawela3318
    @christophermawela3318 2 месяца назад +1

    Thank you very much, as I was giving up React, then this tutorial. Best explanations...

    • @GreatStackDev
      @GreatStackDev  2 месяца назад

      You're welcome! Glad it helped you. Thank you! 😊

  • @ZakirAhmad-code
    @ZakirAhmad-code 2 месяца назад +1

    i really appreciate your efforts in helping me understand frontend . Love from Pakistan

    • @GreatStackDev
      @GreatStackDev  2 месяца назад

      Thank you so much! 🙂 Keep learning and build some react projects.

  • @LahoreAI
    @LahoreAI 2 месяца назад +1

    I love your tutorials previously because you provide assets 😅 and your explanation was always good. But in this video you just nailed react hooks I don't think there is any other source where you can learn hooks in that much easy way. I really appreciate your effort ❤.

    • @GreatStackDev
      @GreatStackDev  2 месяца назад +1

      Thank you so much for your kind words! 😊 I’m glad you found the React hooks tutorial helpful. Your feedback really motivates me. Thanks for your support! ❤️

  • @ameen_hamza
    @ameen_hamza 4 месяца назад

    This tutorial helped me a lot to understand hooks with real world examples.

  • @AakashSisodiya-j2v
    @AakashSisodiya-j2v Месяц назад +1

    Thankyou So much sir Its really a grate Videos 🙌🙌

  • @arjunchaurasiya6709
    @arjunchaurasiya6709 21 день назад

    Custom hook is hard to understand but for other hook , thanks ❤

  • @rjf2408
    @rjf2408 2 месяца назад +1

    Thank you bhaiya, aaj meri doubt solve itne din hawa mai tha..

    • @GreatStackDev
      @GreatStackDev  2 месяца назад

      Glad you liked it. You are welcome! 😊

  • @Yeabtsegaafewerk
    @Yeabtsegaafewerk 5 месяцев назад +4

    1M subscriber GreateStack👏👏👏👏👏👏👏👏👏👏👏

  • @8creators
    @8creators 5 месяцев назад +1

    Loved it.. please make a detail video on redux!

  • @tonytodd7011
    @tonytodd7011 2 месяца назад

    Thank you for your great lesson man! Very clear!

  • @imwarlord6617
    @imwarlord6617 Месяц назад +3

    Bro this content worth thousands, simply teaching valueable things for free, this worth ad

    • @GreatStackDev
      @GreatStackDev  Месяц назад

      I appreciate that! Thank you so much 😊

  • @rahulrj5884
    @rahulrj5884 2 месяца назад +2

    Wow what a clean and clear explanation of all the react hooks, thank you so much for such a great explanation which no one can get on paid course also.

    • @GreatStackDev
      @GreatStackDev  2 месяца назад

      Thank you so much Rahul! Glad you liked it. 😊

  • @BenjunOgania
    @BenjunOgania 4 месяца назад +1

    This Video is really really helpful thank you very much.

    • @GreatStackDev
      @GreatStackDev  4 месяца назад

      Glad to hear that. Thanks for your comment. 😊

  • @SDamariis
    @SDamariis 3 месяца назад

    Thank you, Avinash. You helped me a lot, and I learned a lot from your videos, I really like the way you explain. 🙏

  • @10xlofizone
    @10xlofizone 5 месяцев назад +1

    👏Hello brother your react series is going best👍👍 make more projects of react
    But bro I have an problem in react installation please help me brother make solution video please 🥺

  • @dharunm8211
    @dharunm8211 3 месяца назад +1

    you done a great job sir!!

  • @JBrogrammer
    @JBrogrammer 5 месяцев назад

    Bro You're a great Person Thanks a lot, My Confidence level increased after I started Watching Your Videos😊❤

  • @YaredAyeleDebela
    @YaredAyeleDebela 5 месяцев назад +2

    Great tutorials from a good guy 👍👍

  • @almandohafenaaje1420
    @almandohafenaaje1420 4 месяца назад +1

    GreatStack, i mean GreatStuff, Thank you for explaining very well.

    • @GreatStackDev
      @GreatStackDev  4 месяца назад

      Glad you liked it. Thanks for your comment. 😊

  • @sfdeveloper4361
    @sfdeveloper4361 Месяц назад +1

    thanks

  • @SADDAMKHAN-tv7ro
    @SADDAMKHAN-tv7ro 2 месяца назад +1

    Your like bookm bro your content deserve million's of views

  • @arjunchaurasiya6709
    @arjunchaurasiya6709 22 дня назад +1

    Mja aa gya❤

  • @lonewolf.8635
    @lonewolf.8635 4 месяца назад

    This is a great video. Great examples definitely to rewatch

    • @GreatStackDev
      @GreatStackDev  4 месяца назад

      Glad you enjoyed it! Thanks for your comment. 😊

  • @anwaralikazim5819
    @anwaralikazim5819 Месяц назад

    Nice sir Make some video on react native your teaching styles is too good

  • @chandanakumara2246
    @chandanakumara2246 3 дня назад

    Superb ❤❤

  • @aminbluestack3450
    @aminbluestack3450 2 месяца назад +1

    My man❤❤❤❤❤❤❤❤❤ sooo well explained

  • @Web_mentor
    @Web_mentor 5 месяцев назад +2

    Bhut mast video banya bhai aapne

  • @younessehorra5592
    @younessehorra5592 5 месяцев назад +1

    Great exlpanation 👏, thanks man ❤

  • @ShouryaSetu
    @ShouryaSetu 4 месяца назад +2

    Amazing tutorial

    • @GreatStackDev
      @GreatStackDev  4 месяца назад +1

      Glad you liked it. Thanks for your comment. 😊

  • @spaceworld1194
    @spaceworld1194 4 месяца назад +2

    Very well explained. it's clear my all doubt. very-very thanks to making this type conceptual video.
    can you please make full video tutorial on firebase.

  • @sarthakitaliya7660
    @sarthakitaliya7660 Месяц назад +1

    thanks a lot.❤

  • @jesnuch8956
    @jesnuch8956 2 месяца назад +1

    Thank you ❤

    • @GreatStackDev
      @GreatStackDev  2 месяца назад

      You're welcome 😊 Keep Learning.

  • @shubhishubhrasoi
    @shubhishubhrasoi Месяц назад

    Please make more series like that for javascript and react and redux too

  • @legendarygaming8180
    @legendarygaming8180 Месяц назад +1

    nice explain sir👌

  • @venkateshpentakota6514
    @venkateshpentakota6514 2 месяца назад +1

    Amazing 🤩

  • @quvomiddinkamalov3292
    @quvomiddinkamalov3292 5 месяцев назад +1

    Thank you, sir ❤

  • @VigneshMuraliKumar
    @VigneshMuraliKumar 5 месяцев назад +1

    I am excited 🎉🎉🎉

  • @ganezxgk
    @ganezxgk Месяц назад

    bestest react hooks vdo ever

  • @asheeshmathur
    @asheeshmathur 4 месяца назад +1

    Excellent

    • @GreatStackDev
      @GreatStackDev  4 месяца назад

      Glad you liked it. Thanks for your comment. 😊

  • @narutoujumaki953
    @narutoujumaki953 4 месяца назад +1

    thank you so much
    :)

  • @dambujopaulo4204
    @dambujopaulo4204 5 месяцев назад +1

    I'm the first one to comment... Loves your videos... Keep it

  • @jayeshshaha49
    @jayeshshaha49 2 месяца назад +1

    Thank you

    • @GreatStackDev
      @GreatStackDev  2 месяца назад

      Glad you liked it. You're welcome Jayesh! 😊

  • @drexk6569
    @drexk6569 5 месяцев назад

    Good explanation indeed, I love your content. But can we create more than one context in a project

    • @idevkr
      @idevkr 5 месяцев назад

      Yes we can create more than one context

  • @quickfactuniverse
    @quickfactuniverse 2 месяца назад

    Sir make the complete video on React router and nested routing plz plz

  • @akoladebode-ajayi327
    @akoladebode-ajayi327 5 месяцев назад +1

    Thank you sir 🙏

  • @marcelohenriquedasilvafons781
    @marcelohenriquedasilvafons781 2 месяца назад +1

    Nice!

    • @GreatStackDev
      @GreatStackDev  2 месяца назад

      I'm so glad! 😊 Keep learning.

  • @aceaceace2355
    @aceaceace2355 4 месяца назад

    Clear an concise

  • @powercircuitacademy
    @powercircuitacademy 5 месяцев назад

    Congratulations🎉 1M

  • @fristanlobo1204
    @fristanlobo1204 2 месяца назад

    While giving the example of useRef (), You removed useEffect because it was rendering the component alot of times. But, if we had passed the dependency of Value to useEffect. It would have rendered only when the Value would have changed right??
    Then what useRef made different there?

    • @fristanlobo1204
      @fristanlobo1204 2 месяца назад

      Completedly understood the 2nd implementtion of useRef hook. That is what we have used it for . But can you please help me understanding the !st use of useRef?

  • @aamirmajeedkhan9570
    @aamirmajeedkhan9570 4 месяца назад

    Great Explanation

  • @fluteprograming
    @fluteprograming 2 месяца назад

    best explanation

  • @realnatureloveradda1811
    @realnatureloveradda1811 4 месяца назад

    Sir please make a full tutorial video how to upload website upload online and what is SSL, hosting and how to maintain our website
    Please sir it's request

  • @maazshaikh7905
    @maazshaikh7905 3 месяца назад

    45:16 we can also solve the infinite render issue by passing [value] as a dependency in useEffect

  • @Mahenaj-l7e
    @Mahenaj-l7e 5 месяцев назад +3

    You are so awesome.😀 Please Keep going
    :)

    • @GreatStackDev
      @GreatStackDev  5 месяцев назад +1

      You're welcome. Thank You for your comment. 😊

  • @shaikyasmeen3947
    @shaikyasmeen3947 3 месяца назад +1

    Please make detail tutorial on redux and toolkit

  • @EnvoyIct
    @EnvoyIct 4 месяца назад

    Sir when you teaching use ref: are u using tailwind css

  • @rajasuryar5398
    @rajasuryar5398 Месяц назад +2

    I need all the examples code for future reference
    Plz provide git link

  • @ghostAgent99
    @ghostAgent99 3 месяца назад

    overall pretty good, you have a couple errors in your useReducer example though

  • @abuasim1000
    @abuasim1000 4 месяца назад

    thanks for your excellent explanation but I am facing problem in useContext section as whenever i am trying more than one data, it shows as an error and adds that Objects are not valid as a React child (found: object with keys {name, phone}). If you meant to render a collection of children, use an array instead. please help me

  • @spartondon3591
    @spartondon3591 5 месяцев назад +3

    Sir as you hit 1million please provide 1 react js project with source code, as a lower middle class student your code prize is not affordable,iam requesting not for all source code just one react project code🥺🙏

    • @Nikhil-xx5bh
      @Nikhil-xx5bh 4 месяца назад

      Bro, why do you need the source code? Just watch the video and code alongside it."

  • @abhinandpappu8865
    @abhinandpappu8865 2 месяца назад

    in useeffect , settimeout() without use effect working as increasing value by after 2seconds what is difference using use effect and without it

  • @fikreterkara3234
    @fikreterkara3234 5 месяцев назад

    Please bring a big project with next js

  • @poojanoothi3748
    @poojanoothi3748 2 месяца назад

    Do tutorial on react native and flutter.

  • @webdevgaurav
    @webdevgaurav Месяц назад

    it's not everything but it's fine. Thanks

  • @VamsiEdara
    @VamsiEdara 3 месяца назад

    Sir Please add video on redux toolkit too ....

  • @kishanthshanthakumar7637
    @kishanthshanthakumar7637 4 месяца назад

    in useEffect Section you forgot to mention about the Lifecycle methods and return {} .

  • @Code_With_Aman1
    @Code_With_Aman1 5 месяцев назад

    Nice ❤❤

  • @MuhammadShaheer-e9m
    @MuhammadShaheer-e9m 5 месяцев назад +2

    Bro when I stood up on my feet I will meet you one day ....

  • @morlanandini1750
    @morlanandini1750 27 дней назад

    why cant we directly put count+4 in use state example?

  • @itsmjns23
    @itsmjns23 Месяц назад

    can you use appwrite as a database and nodejs i hope you'll notice me

  • @santhoshsunkara7212
    @santhoshsunkara7212 Месяц назад +1

    Content is top notch but there are a lot of ads

    • @fashionaddaudaipur4023
      @fashionaddaudaipur4023 18 дней назад

      Free me kuch ni milta youtube pr

    • @neerajslab
      @neerajslab 14 дней назад

      Subscription le lo

    • @neerajslab
      @neerajslab 14 дней назад

      ​@@fashionaddaudaipur4023khi v kuchh nhi milta free me

  • @vageshnp6792
    @vageshnp6792 Месяц назад +1

    what is major diff between redux and useContext hook

    • @GreatStackDev
      @GreatStackDev  Месяц назад +1

      Redux is a complex state management library with a centralized store, ideal for large apps. useContext is a simpler, built-in hook for sharing state between components, best for simpler use cases. Redux has a steeper learning curve and more setup compared to useContext.

    • @vageshnp6792
      @vageshnp6792 Месяц назад

      Please can you make a video on redux

  • @ajaydhanwate255
    @ajaydhanwate255 4 месяца назад +2

    nice one tutorial👌

    • @GreatStackDev
      @GreatStackDev  4 месяца назад

      Glad you liked it. Thank You.. 😊

  • @ayercoderx
    @ayercoderx Месяц назад +1

    27:28

  • @_HarshitChaurasia
    @_HarshitChaurasia 5 месяцев назад +1

    Sir please upload tha project real time chat application

  • @kauseransari623
    @kauseransari623 5 месяцев назад +1

    First comment 😊

  • @hwapyongedouard
    @hwapyongedouard 5 месяцев назад

    yes 💪💪

  • @adarshjamwal3448
    @adarshjamwal3448 2 месяца назад

    Great videos but please control your too much ads.

  • @bhavnasingh1504
    @bhavnasingh1504 5 месяцев назад +1

    🎉🎉🎉

  • @malag6358
    @malag6358 2 месяца назад

    Explanation is clear , but too much ads

    • @_7Spike_
      @_7Spike_ 2 месяца назад +1

      use revenced youtube for block ads

  • @finearts2391
    @finearts2391 2 месяца назад

    46:00