Avoid This Common React Mistake Newbies Make

Поделиться
HTML-код
  • Опубликовано: 21 сен 2024
  • Topics Covered:
    What is an event?
    How are event handlers typically passed?
    Calling a function rather than passing a reference to a function
    But what if you need to pass arguments?
    When possible, I like creating functions outside of the component so I can test them a bit easier via exports

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

  • @gobifrontend
    @gobifrontend 2 дня назад +1

    The explanation is quite clean and simple.

  • @Jaycoda10
    @Jaycoda10 Час назад

    Another awesome video! The brilliant recap really helps solidify the learning process for me.

    • @coderyan
      @coderyan  39 минут назад

      Happy it helped!

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

    Did you delete a criticizing comment about the length of the video and making watchers wait for the lone tip? It shows in one interface element but it’s missing from another.

    • @coderyan
      @coderyan  День назад +1

      I have received comments like this where comments are shown on one interface and not another. I think somewhere in my settings it’s set where comments can be automatically hidden.
      Generally, I try not to remove comments if they’re constructive, and not just rude. For this particular video, I do see a comment criticizing length in my studio settings, but I also see that it's not displayed here on the video within RUclips desktop. I removed the comment from my notifications in RUclips studio, as I did find it a little rude and I wasn't going to respond to it, but it wasn't my intention to completely remove the comment altogether
      But I have probably removed comments too quickly in the past, though, as I really am trying to just help people out with this channel and have the channel be an overall positive place. On digital platforms, it can also sometimes be difficult to tell if someone’s trying to be helpful or if they’re just trying to be rude.