useEffect, useRef and useCallback with 1 project in Reactjs

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 2024
  • In this video, Hitesh walks you through the practical use of ReactJS hooks like useEffect, useRef, and useCallback by building a simple yet insightful project-a password generator. Despite the project’s basic appearance, it’s designed to demonstrate ReactJS best practices, focusing on optimizing component re-rendering and enhancing user experience. Hitesh explains how useEffect runs code on component mount and re-runs when dependencies change, ensuring the password updates dynamically. The useRef hook is utilized to reference and manipulate DOM elements, such as highlighting text when copying. Additionally, useCallback is introduced to optimize performance by caching function definitions, preventing unnecessary re-renders. This project, built using Tailwind CSS for styling, is an excellent example of how even a simple ReactJS application can involve complex, efficient coding techniques. Throughout the video, Hitesh emphasizes the importance of understanding these hooks to write cleaner, more efficient React code, making it a must-watch for anyone looking to deepen their ReactJS knowledge.
    Welcome to a youtube channel dedicated to programming and coding related tutorials. We talk about tech, write code, discuss about cloud and devops. That’s what we do all day, all year. We roll out a lot of series and videos on our channel.
    All the learning resources such as code files, documentations, articles and community discussions are available on our website:
    chaicode.com/
    You can find our discord link, github link etc on the above website.
    Twitter/X link: x.com/hiteshdo...
    Discord link: hitesh.ai/discord
    Learn React with 10 projects: • Let's learn react from...
    Learn Docker: • A practical guide on D...
    Learn Kubernetes: • Complete Kubernetes Co...
    How does a browser works: • How does a browser wor...
    How nodejs works: • How node JS works | En...
    Learn Redux-toolkit: • Learn Redux Toolkit in...
    Learn NextJS: • Nextjs Full stack course
    Learn Typescript: • Why to learn Typescript
    Learn Javascript: • Welcome to new JavaScr...
    Learn React Native: • React Native Mastery: ...
    Learn Zustand: • React state management...
    Learn Golang: • How to get started wit...

ความคิดเห็น • 145

  • @atishbackup9442
    @atishbackup9442 9 หลายเดือนก่อน +4

    What a way to explain things even after working 8 years in industry i find lot of point to pick and dig dive thanks HItesh SUperman

  • @benmorgan-cleveland2446
    @benmorgan-cleveland2446 7 หลายเดือนก่อน +2

    Hitesh, I love the tutorials! Clear, current, and easy to listen to and follow. Well done.

  • @NouraHussain
    @NouraHussain 7 หลายเดือนก่อน +5

    thank you what a beautiful way to deal with React I loved it. man I do not feel time with you this is an amazing series to learn with thanks again

  • @Ronieyit
    @Ronieyit 2 หลายเดือนก่อน +2

    this tutorial series is the best l have found on React. thank you so much Mr. Hitesh. BUG: Sir - there are instances the password generated is less than the length specified, it still displays for the user the password however it is shorter than the user selection. work around l used is to use an if statement to compare the length of the password generated against the "length" required, if they are not equal re-run the "for loop", l created a function for the "for loop" to ensure for loop is not repeated. thank you once again

  • @АлександрРевин-ъ8к
    @АлександрРевин-ъ8к 10 หลายเดือนก่อน +2

    Hey Hitesh!
    You are the best speaker about programming that I've ever watched and listened.
    Thank you very much

  • @duanedodson1
    @duanedodson1 9 หลายเดือนก่อน +1

    Thank you, again, this series has driven home so many of the skills I have been struggling with in react, thank you.

  • @vijayroy93
    @vijayroy93 11 หลายเดือนก่อน +1

    you are the best Hitesh. your teaching style is just out of this world and simple.

  • @sriyasuhrudi9438
    @sriyasuhrudi9438 หลายเดือนก่อน

    This series is the best for beginners trying to learn react. You make it sound interesting and easy to learn.
    Thank you Hitesh sir

  • @Maniish.pandey
    @Maniish.pandey ปีที่แล้ว +1

    I actually was studying from chai and react and i came here to revise the videos that I've studied😅, and these videos actually helped me understanding concept more.

  • @loudcapricorn5513
    @loudcapricorn5513 6 หลายเดือนก่อน +3

    Great video. Simple and easy with that explananation

  • @kashishagrahari7087
    @kashishagrahari7087 11 หลายเดือนก่อน +1

    Hey Hitesh!
    It was a wonderful, easy to understand, basic to detail, everything you have covered in this video🤩
    Thank you so much for creating and updating such contents. Keep Going 🤓

  • @abhishektiwari8431
    @abhishektiwari8431 6 หลายเดือนก่อน

    Thank you hitesh for this series really i am enjoying this playlist and building a frontend project from scratch

  • @lenny_off9723
    @lenny_off9723 10 หลายเดือนก่อน +4

    Hi , thanks for your tutos , very interesting and helping a lot.
    Juste a comment to tel you that there has been a small mistake in your code (nothing to bad).
    In the "for loop" you wrote "i

    • @brianjones71
      @brianjones71 6 วันที่ผ่านมา

      right, or start the loop at 0

  • @martinnjeri6997
    @martinnjeri6997 2 หลายเดือนก่อน

    THis is the most valiable 40 minutes video i have watched in a while...good job!!!!

  • @animeshsingh1605
    @animeshsingh1605 11 หลายเดือนก่อน

    The way you help us make to understand concept in JavaScript , is superb.

  • @joelhenry2203
    @joelhenry2203 ปีที่แล้ว +1

    thank you hitesh for this series. please continue this as long as as you can. Im learining a lot from this.

    • @HiteshCodeLab
      @HiteshCodeLab  ปีที่แล้ว +1

      Yep, we will be building some cool mega project too in this series

  • @abinasb
    @abinasb 9 หลายเดือนก่อน

    Thank you for sharing this video series which helps so much for learning react from scratch

  • @FaizanKhan-gfaizank
    @FaizanKhan-gfaizank 9 หลายเดือนก่อน +4

    Anyone watching this, just know that you in the right place..

    • @bhavikarathod2417
      @bhavikarathod2417 4 หลายเดือนก่อน

      if i will complete this series will I be able to crack the interviews?

  • @somaadina8102
    @somaadina8102 10 หลายเดือนก่อน

    This is one of the best react series on yt❤

  • @dipakchavare778
    @dipakchavare778 9 หลายเดือนก่อน

    thank you Hitesh sir for this series.. Im learining a lot from this.

  • @need_2_know
    @need_2_know 8 หลายเดือนก่อน

    Thank You sir ..❤
    i came here after watching 3 hrs video on another channel.

  • @Adventures_English
    @Adventures_English 9 หลายเดือนก่อน

    Great Project. Great Attitude. Great UI.

  • @NikhilHedukar
    @NikhilHedukar ปีที่แล้ว +1

    You are doing really good work. Your videos are always helpful for me. Thanks Hitesh 👍

  • @DarthVader-z2s
    @DarthVader-z2s 10 หลายเดือนก่อน

    Thanks, Hitesh. In general, I wouldn't comment, but I want you to make such more videos, hence I'm on it for your morale. Cheers.

  • @lasagna2240
    @lasagna2240 4 หลายเดือนก่อน +1

    Thank you for the series!

  • @umarxaman7761
    @umarxaman7761 7 หลายเดือนก่อน

    real hero in development

  • @sumontasaha5638
    @sumontasaha5638 ปีที่แล้ว

    Thank you for the Quality of teaching, Sir

  • @aimenazim1508
    @aimenazim1508 2 หลายเดือนก่อน

    quite informative video learnt a lot in it. one little confusion, i did not get why we used "usecallbak" when "use effect" is doing the same thing.

  • @towseefahmed6328
    @towseefahmed6328 ปีที่แล้ว +1

    very much interested sir... thanks so much for this series it help us a lot in our projects

  • @Donald.L.Rosenberg
    @Donald.L.Rosenberg 4 หลายเดือนก่อน

    thank you what a beautiful way to deal with React I loved it.

  • @TVCeker
    @TVCeker 9 หลายเดือนก่อน

    Thank you for your free educational video.

  • @vishwanatha6859
    @vishwanatha6859 7 หลายเดือนก่อน

    Amazing video, learnt a lot of things, Thank you so much Sir🤩

  • @madhummh77
    @madhummh77 ปีที่แล้ว

    Great effort towards quality of teaching

  • @PranavPatil-e6l
    @PranavPatil-e6l ปีที่แล้ว

    Your videos are always helpful for me.

  • @haque259
    @haque259 7 หลายเดือนก่อน

    Your videos are best so far

  • @suryakumar7285
    @suryakumar7285 11 หลายเดือนก่อน

    Thank you for this course sir , please continue this series as long as you can. ❤

  • @prasadpatil2371
    @prasadpatil2371 ปีที่แล้ว +1

    there is problem in for loop , hence i tried - for (let i = 1; i < length; i++) {
    const i = Math.floor(Math.random() * str.length + 1)
    pass += str.charAt(i)
    }

  • @martinnjeri6997
    @martinnjeri6997 2 หลายเดือนก่อน

    Vamossss...... you are an inspiration to many... bravooo 💪🏿💪🏿💪🏿💪🏿💪🏿💪🏿💪🏿💪🏿

  • @nigam_sharma
    @nigam_sharma ปีที่แล้ว +3

    From chai and code ❤

  • @meowmeowfood
    @meowmeowfood 10 หลายเดือนก่อน

    Excellent series so far. Just a quick question about the "onChage" method. When you write "onChange = {(e) => setlength(e.target.value)}," how does the javascript know to immediately interpret the "e" as the event? Thanks in advance!

    • @subbu7512
      @subbu7512 10 หลายเดือนก่อน +1

      The (e) is a shorthand for (event). It's a parameter that represents the event object generated by the browser when the onChange event occurs.Also the way function written here is with implicit arrow functions . Implicit return functions don't require any return keyword . (ES6+ JS Syntax)

  • @PradeepSharma-ox9mw
    @PradeepSharma-ox9mw 11 หลายเดือนก่อน

    Hello Sir, Great video, though one query , why we used dependency array on both useeffect and usecallback ?

  • @aaronmanocha9158
    @aaronmanocha9158 2 หลายเดือนก่อน

    Thank You sir, you are doing a great work!!!!

  • @mattakalyan1427
    @mattakalyan1427 9 หลายเดือนก่อน

    Thanks for giving this nice course

  • @animeshmondal9569
    @animeshmondal9569 9 หลายเดือนก่อน

    Thank you sir for this course❤❤

  • @DriveDiveAroundtheWorld
    @DriveDiveAroundtheWorld 10 หลายเดือนก่อน

    Thanks for this course and your work on this.

  • @SMSHIHAB
    @SMSHIHAB 11 หลายเดือนก่อน

    Really helpful series for learning to react

  • @irtizahussain7164
    @irtizahussain7164 8 หลายเดือนก่อน

    Great work, appreciated. 😃

  • @_sarthakmisal
    @_sarthakmisal 8 หลายเดือนก่อน +1

    100th Comment Hitesh Bhai

  • @DeepakSankhyan
    @DeepakSankhyan ปีที่แล้ว

    Why only 100 comments for this quality stuff.....

  • @suvrajitmondal2325
    @suvrajitmondal2325 ปีที่แล้ว +1

    Thank you. Very useful video.

  • @mobileLegendFunMoments
    @mobileLegendFunMoments ปีที่แล้ว

    Sir keep it up , i am following your both channels.

  • @sivasaireddy1601
    @sivasaireddy1601 6 หลายเดือนก่อน

    great Hitesh

  • @frankjonathansaenz1911
    @frankjonathansaenz1911 หลายเดือนก่อน

    Great tutorial!!

  • @Bhaskarjyoti02
    @Bhaskarjyoti02 6 หลายเดือนก่อน

    Im very much thankful to you sir

  • @letshope5646
    @letshope5646 11 หลายเดือนก่อน

    Thanks Hitesh...

  • @dolfieaspeling9893
    @dolfieaspeling9893 9 หลายเดือนก่อน

    Please, please keep going !

  • @morecoinbull
    @morecoinbull 10 หลายเดือนก่อน

    Keep going Bro! Great Job

  • @jun4idm0min
    @jun4idm0min 8 หลายเดือนก่อน

    Hitesh brother 💐💐

  • @Hatsoff4u
    @Hatsoff4u 10 หลายเดือนก่อน

    its really awesome

  • @murshid956
    @murshid956 ปีที่แล้ว

    Thank you so much for this video

  • @henryamos
    @henryamos 3 หลายเดือนก่อน

    I love this react coding

  • @jayakumar9976
    @jayakumar9976 ปีที่แล้ว

    Awesome. Learned about usecallback hook.

  • @mahendrarajput2870
    @mahendrarajput2870 8 หลายเดือนก่อน

    Nice explanation.

  • @ankushchavanwebdeveloper
    @ankushchavanwebdeveloper 11 หลายเดือนก่อน

    Could you please share which extension you're using to receive auto-suggestions in your code editor?

  • @GOKKULVSIT
    @GOKKULVSIT 9 หลายเดือนก่อน

    great work

  • @vijay-dw1bl
    @vijay-dw1bl 10 หลายเดือนก่อน

    Nice work bro

  • @prateekbidve
    @prateekbidve ปีที่แล้ว +1

    Let's go ❤

  • @bijendernagar15
    @bijendernagar15 ปีที่แล้ว

    yes sir sooooo intrestedddddddd

  • @powerfulmath8488
    @powerfulmath8488 5 หลายเดือนก่อน

    how are you getting the auto suggestions when you are defining the states?

    • @sudeepjoshi9948
      @sudeepjoshi9948 4 หลายเดือนก่อน

      Intelisense or ai like tabanine, copilot,cody

  • @miraclemaxwell9988
    @miraclemaxwell9988 4 หลายเดือนก่อน

    Thanks Hitesh please can you do something on python. You are the best

  • @navinkumarsahu1159
    @navinkumarsahu1159 ปีที่แล้ว +1

    much needed

  • @nasrinagashte
    @nasrinagashte 10 หลายเดือนก่อน

    Thanks 😊

  • @chiranjeev331
    @chiranjeev331 ปีที่แล้ว

    Haanji you are back 😅

  • @noobCoder26
    @noobCoder26 ปีที่แล้ว

    wonderful

  • @arkodeepchatterjee
    @arkodeepchatterjee 9 หลายเดือนก่อน

    🔥🔥🔥🔥🔥🔥🔥

  • @sriramvenkatesh
    @sriramvenkatesh 10 หลายเดือนก่อน

    Thankyou ji

  • @VivoMobile-yg9zh
    @VivoMobile-yg9zh 6 หลายเดือนก่อน

    thanks sir

  • @abdudujjjana8512
    @abdudujjjana8512 6 หลายเดือนก่อน

    nice

  • @yashvantryadav
    @yashvantryadav ปีที่แล้ว

    Thanks

  • @deadlylive_gaming7154
    @deadlylive_gaming7154 หลายเดือนก่อน

    thanks🎉

  • @TheCareerGuide601
    @TheCareerGuide601 ปีที่แล้ว

    Ey intern hire kr rhe hain? Ey techthon comp sahi hai?

  • @tretawebsolution
    @tretawebsolution ปีที่แล้ว

  • @_crista
    @_crista ปีที่แล้ว

    make more don't stop

  • @ajassharafudeen
    @ajassharafudeen 3 หลายเดือนก่อน

    guys, what extension prompts vs code to autocomplete useState snippets as shown in 09:40.

  • @dhruvcharkhawala7509
    @dhruvcharkhawala7509 10 หลายเดือนก่อน

    generatePassword function is working without useCallback.... why?

  • @zues8150
    @zues8150 2 หลายเดือนก่อน

    Starting easy project:- 🤡
    Ending complex project:- 🗿

  • @videosforyou8751
    @videosforyou8751 9 หลายเดือนก่อน

  • @hvg800
    @hvg800 ปีที่แล้ว

    Hy sir , there are several "Post Graduate Program In Cloud Computing" which offers Certification Aligned with AWS ,GCP, Azure and are providing industry lvl knowledge , practices , project developments and lot more , and are charging from 65k to 1.5 lakh having a course tenure of 6-8 months , wanted to know that is it beneficial to spend this much for these kindda stuffs, or just simply should pursue for individual certificates step by step (as u taught ) ,,
    it will gonna be very helpful if u can plz clear this out , for each and every perspective (beginner, intermediate , pro ). 😊

    • @ogawde7
      @ogawde7 ปีที่แล้ว

      Simplilearn ?

    • @hvg800
      @hvg800 ปีที่แล้ว

      yep , any kinda info u know about ???@@ogawde7

    • @HiteshCodeLab
      @HiteshCodeLab  ปีที่แล้ว

      Benefit is a very personal term. Each offering has it's own value proposition.

  • @akarshk7518
    @akarshk7518 10 หลายเดือนก่อน

    Day 3 of React Journey. 5th video of the day.

  • @viththagan3547
    @viththagan3547 ปีที่แล้ว

    Thank you

  • @gyanabhijeetshivam3692
    @gyanabhijeetshivam3692 22 วันที่ผ่านมา

    ♥♥♥♥

  • @sharathkumar726
    @sharathkumar726 7 หลายเดือนก่อน

    👍

  • @arunks8106
    @arunks8106 5 หลายเดือนก่อน

  • @The_Developer_
    @The_Developer_ 9 หลายเดือนก่อน

    we are interested

  • @harikrishnanpandyan5684
    @harikrishnanpandyan5684 ปีที่แล้ว

    Why in this channel less react video or u r uploading slowly... 😢😢

    • @HiteshCodeLab
      @HiteshCodeLab  ปีที่แล้ว +1

      I upload as I get time from life 😁

  • @twiceuponatime7625
    @twiceuponatime7625 ปีที่แล้ว

    Thank you hindi fan

  • @nagendranfriends3153
    @nagendranfriends3153 ปีที่แล้ว

    Why bootstrap is not used here

    • @HiteshCodeLab
      @HiteshCodeLab  ปีที่แล้ว

      Bootstrap, tailwind or any third party, this series is not focused on CSS

  • @nimeshcheedella8124
    @nimeshcheedella8124 ปีที่แล้ว

    commenting for boost

  • @mgnregakashmir5999
    @mgnregakashmir5999 ปีที่แล้ว

    Coffee and React

    • @HiteshCodeLab
      @HiteshCodeLab  ปีที่แล้ว

      I am more of a tea person 😁

  • @5minupsc723
    @5minupsc723 7 หลายเดือนก่อน

    where is the code