The Perfect Hook For Debugging Custom React Hooks

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ก.ค. 2024
  • FREE React Hooks Course: courses.webdevsimplified.com/...
    The useDebugValue hook is a very simple hook that serves one purpose, but it does that one thing very well. Because of its niche nature most people don’t learn it, but this hook can make debugging and building custom hooks a bit easier which is why I recommend learning it.
    📚 Materials/References:
    FREE React Hooks Course: courses.webdevsimplified.com/...
    useDebugValue Blog Article: blog.webdevsimplified.com/202...
    🌎 Find Me Here:
    My Blog: blog.webdevsimplified.com
    My Courses: courses.webdevsimplified.com
    Patreon: / webdevsimplified
    Twitter: / devsimplified
    Discord: / discord
    GitHub: github.com/WebDevSimplified
    CodePen: codepen.io/WebDevSimplified
    ⏱️ Timestamps:
    00:00 - Introduction
    00:30 - What is the purpose of useDebugValue
    02:02 - Basic useDebugValue use case
    03:00 - Advanced useDebugValue use cases
    05:03 - Performance concerns
    #useDebugValue #WDS #ReactHooks

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

  • @subhajitpanja1353
    @subhajitpanja1353 2 ปีที่แล้ว +4

    Sir, you are the best JS teacher to me.
    Thank you for your efforts in making these videos. When I watch your video concept of that tropic getting clear.
    I'm requesting you to make a video on React testing.
    That subject I want to learn from you.

  • @aram5642
    @aram5642 2 ปีที่แล้ว +2

    I'd be curious to see a video about using Performance in devtools, to debug anf optimize computational timings.

  • @caesarbala
    @caesarbala 2 ปีที่แล้ว +7

    what is difference between console.log and useDebugValue hook ?

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

    Your the best thanks for all your explication, im doing a lot of progress :) Thank you ! :D

  • @user-ie7md3mm6x
    @user-ie7md3mm6x 2 ปีที่แล้ว

    As always, thank you so much

  • @AliShadman
    @AliShadman 2 ปีที่แล้ว

    Very, well explained

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

    I thank you very much Karl

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

    Thank you.

  • @AliShadman
    @AliShadman 2 ปีที่แล้ว

    great video

  • @lovepreet-9440
    @lovepreet-9440 2 ปีที่แล้ว +15

    Cover React native dude please 🥺

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

    what is the definition of a custom hook? is it the 'use*' function naming convention or return value is not a jsx element, or something else?

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

      They’re basically functions that use state or other react hooks. They can only be used inside a react component.

    • @moodynoob
      @moodynoob 2 ปีที่แล้ว

      Look up the Rules of Hooks in tbe React documentation. Custom hooks basically allow you to use React hooks like useState outside of a component.
      If you're writing a function that doesn't use any React hooks, then it's a regular function and you don't need to follow the rules of hooks.

    • @TimWinfred
      @TimWinfred 2 ปีที่แล้ว

      He also has a video about custom React hooks =) th-cam.com/video/6ThXsUwLWvc/w-d-xo.html

  • @avijitchanda7944
    @avijitchanda7944 2 ปีที่แล้ว

    Make a tutorial on Zustand

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

    Please simplify redux saga..

  • @AtomicCodeX
    @AtomicCodeX 2 ปีที่แล้ว

    Great video! But you stole the video I was making 🤣

    • @AtomicCodeX
      @AtomicCodeX 2 ปีที่แล้ว

      @asdfa 🤣🤣😭

  • @Shyam_Mahanta
    @Shyam_Mahanta 2 ปีที่แล้ว +2

    first

  • @yadusolparterre
    @yadusolparterre 2 ปีที่แล้ว

    If I understand well, this hook is only there to save you a click ? Sounds counter-productive to me

  • @roshanthapa25
    @roshanthapa25 2 ปีที่แล้ว

    Second

  • @theisoj
    @theisoj 2 ปีที่แล้ว

    fifth

  • @John-wx3zn
    @John-wx3zn ปีที่แล้ว

    Why do you say hook so many times?

  • @user-ur3io2ny2j
    @user-ur3io2ny2j 3 หลายเดือนก่อน

    Everything is perfectly fine just please speak slower💀

  • @kyryllvlasiuk
    @kyryllvlasiuk 2 ปีที่แล้ว

    ID: pTF86K8JZBQ
    Title: The Perfect Hook For Debugging Custom React Hooks
    HIDE: Dont use react
    TODO: Check if there is any .NET content on this channel