Goodbye, forwardRef

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

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

  • @meowmix0008
    @meowmix0008 4 месяца назад +5

    High quality research, point of view, and video! Please keep making content!

  • @yuanqili7104
    @yuanqili7104 21 час назад

    This is an exceptional talk. forwardRef demystified and demolished

  • @escapepeterpan
    @escapepeterpan 15 дней назад

    bro i respect your work! as someone beginner to react i found your video both challenging and such a breeze.
    it's challenging because it gives me a glimpse that react isn't that simple, which humbles me. i thought tutorials is enough, there's much more beyond that.
    and on the other hand, the way you breakdown the problem and how you come up with existing solutions, give me a breeze. "oh so that's how i should think about this problems" i thought.
    i hope you can post more video like this bro, if you have X's account or something, i wish to follow you. it'll be good to add it in your channel descriptions.
    anyway, thanks for your works~!

  • @trontrontrontron4
    @trontrontrontron4 14 дней назад

    actually useful react video. I always though about this because we also saw performance issues when using MUI and had debug that forward ref had something to do with it

  • @ramzivoidmaster2029
    @ramzivoidmaster2029 22 дня назад

    man is working hard
    *man got my respect and a sub plus a like

  • @thisweekinreact
    @thisweekinreact 6 месяцев назад +3

    Great video, I forgot a bit about the historical context of all this over time 😅
    Shared in this week's newsletter 👍

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

      Yup, the evolution of some of those APIs is interesting when you look at it retrospectively 😄
      Thank you very much! I'm an avid reader of This Week in React myself, so it's a huge honor for me to be mentioned, appreciate it!🤩

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

    Let me try this!

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

    When i learn react, i am confused why i can't pass the ref to my functional child component , like it is not fair if native/react component got that ability but mine not LMAO.

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

      Yes, exactly! BTW by "native/react" component you probably mean the class component, right? TBH I think function components are more "native" nowadays, they are the de facto standard and React Docs no longer recommend class components anymore :D

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

      @@UIEngineering ah I maybe have wrong term and wrong explain my intention, let me clear, when I learn react a few month ago I discover that I can't passing ref down to my child component, I grumping why it cannot done in first place by default lmao 🤣 (like u explain that we can either use different name to pass the ref or use forwardref )

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

      Yep, yep, I get it. That's exactly what made me puzzled as well. The whole idea of filtering out ref from components should never materialize. IMHO it was a mistake, and thankfully we have official confirmation it will be dropped in React v19 :D

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

      @@UIEngineering Finally :D

  • @Daddyjs
    @Daddyjs 5 месяцев назад +1

    Can you just pass ref to a functional compojent and call the prop something other than ref ? Like so instead of calling the prop name ref. This way you can pass it as a prop

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

      That's exactly the idea of what I've called "Custom Ref Prop Pattern" (06:16 - The Alternative). Exactly what you've described 👍

  • @merotuts9819
    @merotuts9819 8 месяцев назад +2

    Such a detailed..and well-researched video. Well done 👏 Instantly liked & subbed 👍

    • @UIEngineering
      @UIEngineering  8 месяцев назад +2

      I did write and rewrite the script for this video at least 5 times. So glad you liked it! Welcome onboard! 😊

  • @gerardmarquinarubio9492
    @gerardmarquinarubio9492 8 месяцев назад +1

    Hey commenting again here! Thanks for fixing the audio desync.

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

      Thanks for letting me know! My bluetooth headphones had a delay and tricked me 🙈

  • @dailydose7772
    @dailydose7772 6 месяцев назад +3

    Dam boy! Imagine if at an interview they asked you "what do you know about ref". Instant hire. Great content.

  • @Cahnisama
    @Cahnisama 6 месяцев назад +1

    This video was amazing, thank you so much

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

      Thank you! ❤ It means a lot, and new videos are coming! ☺

  • @MichałGaniebny
    @MichałGaniebny 2 месяца назад

    This is an absolute banger of a video. I have gained so much knowledge and background on this topic in such a small amount of time. Thank you for sharing this with us.

    • @UIEngineering
      @UIEngineering  2 месяца назад +1

      And this is such a wonderfully supportive comment, perfectly timed as I’m struggling with a creative block rn! Thank you so much! I’m glad you enjoyed the video :)

  • @RamaRama-qv3jo
    @RamaRama-qv3jo 7 месяцев назад

    That's great! I tried this pattern with the component of the Ionic framework, everything works great.)) Thanks!

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

      Glad I could help! I think having this in your toolbelt definitely helps 🙂

  • @the-other-sunny
    @the-other-sunny 8 месяцев назад

    Liking again !

    • @UIEngineering
      @UIEngineering  8 месяцев назад +2

      Unfortunately reuploading totally killed this video's reach, so thank you for support! Appreciate it very much! ❤️