useEffect, useRef and useCallback with 1 project in Reactjs

Поделиться
HTML-код
  • Опубликовано: 10 сен 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...

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

  • @atishbackup9442
    @atishbackup9442 8 месяцев назад +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

  • @Ronieyit
    @Ronieyit Месяц назад +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

  • @sriyasuhrudi9438
    @sriyasuhrudi9438 12 дней назад

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

  • @NouraHussain
    @NouraHussain 6 месяцев назад +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

  • @benmorgan-cleveland2446
    @benmorgan-cleveland2446 6 месяцев назад +2

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

  • @user-gh2vo6rc2u
    @user-gh2vo6rc2u 9 месяцев назад +2

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

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

    Great video. Simple and easy with that explananation

  • @Maniish.pandey
    @Maniish.pandey 11 месяцев назад +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.

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

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

  • @duanedodson1
    @duanedodson1 7 месяцев назад +1

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

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

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

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

    Thank you for the series!

  • @FaizanKhan-gfaizank
    @FaizanKhan-gfaizank 8 месяцев назад +4

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

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

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

  • @lenny_off9723
    @lenny_off9723 9 месяцев назад +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

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

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

  • @joelhenry2203
    @joelhenry2203 11 месяцев назад +1

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

    • @HiteshCodeLab
      @HiteshCodeLab  11 месяцев назад +1

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

  • @animeshsingh1605
    @animeshsingh1605 10 месяцев назад

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

  • @kashishagrahari7087
    @kashishagrahari7087 10 месяцев назад +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 🤓

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

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

  • @need_2_know
    @need_2_know 7 месяцев назад

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

  • @somaadina8102
    @somaadina8102 9 месяцев назад

    This is one of the best react series on yt❤

  • @abinasb
    @abinasb 8 месяцев назад

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

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

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

  • @Donald.L.Rosenberg
    @Donald.L.Rosenberg 3 месяца назад

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

  • @user-dh5ih1kg3m
    @user-dh5ih1kg3m 9 месяцев назад

    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.

  • @Adventures_English
    @Adventures_English 8 месяцев назад

    Great Project. Great Attitude. Great UI.

  • @dipakchavare778
    @dipakchavare778 8 месяцев назад

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

  • @towseefahmed6328
    @towseefahmed6328 11 месяцев назад +1

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

  • @sumontasaha5638
    @sumontasaha5638 11 месяцев назад

    Thank you for the Quality of teaching, Sir

  • @umarxaman7761
    @umarxaman7761 6 месяцев назад

    real hero in development

  • @suryakumar7285
    @suryakumar7285 10 месяцев назад

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

  • @NikhilHedukar
    @NikhilHedukar 11 месяцев назад +1

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

  • @vishwanatha6859
    @vishwanatha6859 6 месяцев назад

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

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

    Im very much thankful to you sir

  • @nigam_sharma
    @nigam_sharma 11 месяцев назад +3

    From chai and code ❤

  • @haque259
    @haque259 6 месяцев назад

    Your videos are best so far

  • @TVCeker
    @TVCeker 8 месяцев назад

    Thank you for your free educational video.

  • @madhummh77
    @madhummh77 11 месяцев назад

    Great effort towards quality of teaching

  • @user-zp1eh8bq6m
    @user-zp1eh8bq6m 10 месяцев назад

    Your videos are always helpful for me.

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

    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.

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

    I love this react coding

  • @prasadpatil2371
    @prasadpatil2371 11 месяцев назад +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)
    }

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

    Great tutorial!!

  • @suvrajitmondal2325
    @suvrajitmondal2325 11 месяцев назад +1

    Thank you. Very useful video.

  • @SMSHIHAB
    @SMSHIHAB 10 месяцев назад

    Really helpful series for learning to react

  • @DriveDiveAroundtheWorld
    @DriveDiveAroundtheWorld 9 месяцев назад

    Thanks for this course and your work on this.

  • @animeshmondal9569
    @animeshmondal9569 8 месяцев назад

    Thank you sir for this course❤❤

  • @mattakalyan1427
    @mattakalyan1427 8 месяцев назад

    Thanks for giving this nice course

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

    great Hitesh

  • @Hatsoff4u
    @Hatsoff4u 9 месяцев назад

    its really awesome

  • @_sarthakmisal
    @_sarthakmisal 7 месяцев назад +1

    100th Comment Hitesh Bhai

  • @deadlylive_gaming7154
    @deadlylive_gaming7154 День назад

    thanks🎉

  • @irtizahussain7164
    @irtizahussain7164 6 месяцев назад

    Great work, appreciated. 😃

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

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

  • @DeepakSankhyan
    @DeepakSankhyan 11 месяцев назад

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

  • @letshope5646
    @letshope5646 10 месяцев назад

    Thanks Hitesh...

  • @murshid956
    @murshid956 11 месяцев назад

    Thank you so much for this video

  • @navinkumarsahu1159
    @navinkumarsahu1159 11 месяцев назад +1

    much needed

  • @mobileLegendFunMoments
    @mobileLegendFunMoments 11 месяцев назад

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

  • @nasrinagashte
    @nasrinagashte 9 месяцев назад

    Thanks 😊

  • @sriramvenkatesh
    @sriramvenkatesh 9 месяцев назад

    Thankyou ji

  • @user-iw7il6zq6j
    @user-iw7il6zq6j 11 месяцев назад +1

    Let's go ❤

  • @mahendrarajput2870
    @mahendrarajput2870 7 месяцев назад

    Nice explanation.

  • @jun4idm0min
    @jun4idm0min 7 месяцев назад

    Hitesh brother 💐💐

  • @dolfieaspeling9893
    @dolfieaspeling9893 8 месяцев назад

    Please, please keep going !

  • @jayakumar9976
    @jayakumar9976 11 месяцев назад

    Awesome. Learned about usecallback hook.

  • @VivoMobile-yg9zh
    @VivoMobile-yg9zh 5 месяцев назад

    thanks sir

  • @bijendernagar15
    @bijendernagar15 11 месяцев назад

    yes sir sooooo intrestedddddddd

  • @arkodeepchatterjee
    @arkodeepchatterjee 8 месяцев назад

    🔥🔥🔥🔥🔥🔥🔥

  • @morecoinbull
    @morecoinbull 9 месяцев назад

    Keep going Bro! Great Job

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

    nice

  • @GOKKULVSIT
    @GOKKULVSIT 8 месяцев назад

    great work

  • @prasad2003g
    @prasad2003g 7 месяцев назад

    thanks

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

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

  • @vijay-dw1bl
    @vijay-dw1bl 9 месяцев назад

    Nice work bro

  • @PradeepSharma-ox9mw
    @PradeepSharma-ox9mw 10 месяцев назад

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

  • @meowmeowfood
    @meowmeowfood 9 месяцев назад

    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 9 месяцев назад +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)

  • @noobCoder26
    @noobCoder26 11 месяцев назад

    wonderful

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

    👍

  • @jatinthakur2501
    @jatinthakur2501 6 месяцев назад

  • @A134gEmail
    @A134gEmail День назад

    Pro

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

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

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

      Intelisense or ai like tabanine, copilot,cody

  • @_crista
    @_crista 11 месяцев назад

    make more don't stop

  • @ankushchavanwebdeveloper
    @ankushchavanwebdeveloper 10 месяцев назад

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

  • @dhruvcharkhawala7509
    @dhruvcharkhawala7509 8 месяцев назад

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

  • @TheCareerGuide601
    @TheCareerGuide601 11 месяцев назад

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

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

  • @viththagan3547
    @viththagan3547 11 месяцев назад

    Thank you

  • @chiranjeev331
    @chiranjeev331 11 месяцев назад

    Haanji you are back 😅

  • @The_Developer_
    @The_Developer_ 8 месяцев назад

    we are interested

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

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

  • @user-cq7dw8co4k
    @user-cq7dw8co4k 11 месяцев назад

  • @akarshk7518
    @akarshk7518 9 месяцев назад

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

  • @nimeshcheedella8124
    @nimeshcheedella8124 11 месяцев назад

    commenting for boost

  • @hvg800
    @hvg800 11 месяцев назад

    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 11 месяцев назад

      Simplilearn ?

    • @hvg800
      @hvg800 11 месяцев назад

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

    • @HiteshCodeLab
      @HiteshCodeLab  11 месяцев назад

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

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

    Hi

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

    comment++

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

    where is the code

  • @harikrishnanpandyan5684
    @harikrishnanpandyan5684 11 месяцев назад

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

    • @HiteshCodeLab
      @HiteshCodeLab  11 месяцев назад +1

      I upload as I get time from life 😁

  • @vamshi2nd392
    @vamshi2nd392 7 месяцев назад

    comment++