This is Why You Can't Render React Hooks Conditionally

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ธ.ค. 2024

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

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

    Great stuff, loving this to the point deep dives!

  • @MS-wh8ky
    @MS-wh8ky ปีที่แล้ว +1

    Thanks a lot for the video! It is really helpful and thorough!
    Can you please say, what extension/setting you have in VS Code, that allows you to see wrapper of the code at the top of the editor?
    For instance: at 10:16 we see line 8 near tabs, saying that the code below belongs to useState function

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

      That is a native vscode settings option: Editor -> Sticky Scroll: Enabled

    • @MS-wh8ky
      @MS-wh8ky ปีที่แล้ว

      @@leotravel85 thanks a lot:)

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

    Thanks... Good Explanation

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

    Actually, you can do conditionally in certain cases. Just know what you're doing :)

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

      give example pls

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

      @@ibrahimayomide2858 I wrote a much more complete example, but YT deleted my comment, so here's the short version. I'm talking about cases where you know your condition won't change during your component's complete life-cycle.

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

      @@wintercounter2 thank you, that total make sense

  • @kagi-www
    @kagi-www ปีที่แล้ว +1

    too many restrictions

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

      eh? not really is a library so it has way less than a framework