This is Why You Can't Render React Hooks Conditionally

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

Комментарии • 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 10 месяцев назад

    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