React Hook Form Controlled Components 1: The process & MUI Checkbox

Поділитися
Вставка
  • Опубліковано 11 січ 2025

КОМЕНТАРІ • 29

  • @fares.abuali
    @fares.abuali Рік тому +1

    Thank you so much!
    Concise & informative 🎉

  • @jexsie
    @jexsie Рік тому +1

    Subscribed, I really need more about react hook form. Thanks a lot

    • @vlad.nicula
      @vlad.nicula  Рік тому

      I’ll make a multi part form video next, thanks for the support!

  • @OnlyJavascript
    @OnlyJavascript Рік тому +1

    the best. Thanks man!! Looking forward to next section.

    • @vlad.nicula
      @vlad.nicula  Рік тому

      thank you for the feedback! what’s one thing you learned from the video?

  • @vladgrecu9080
    @vladgrecu9080 Рік тому +1

    Really awesome content Vladut, keep em' comming

  • @pogadev
    @pogadev Рік тому +1

    Very nice explanation, you make it look easy! Looking forward for the next videos in the series

  • @bluebill1049
    @bluebill1049 Рік тому +1

    Another great video with excellent explanation.

    • @vlad.nicula
      @vlad.nicula  Рік тому +1

      Thanks! I’m making the PR for the resources page this week, I didn’t forget 👍☺️

  • @codernerd7076
    @codernerd7076 Рік тому +1

    This indeed helps A LOT! Thanks!

    • @vlad.nicula
      @vlad.nicula  Рік тому +1

      my pleasure, thanks for the feedback. what is one thing you learned from this video?

    • @codernerd7076
      @codernerd7076 Рік тому +1

      @@vlad.nicula mostly using MUI and React Hook Form together, but still trying to get a way to create an auto-complete address field with data from the Google Places API to work.

    • @vlad.nicula
      @vlad.nicula  Рік тому +1

      @@codernerd7076 I’ll cover autocompletes in about 7-14 days from now, I hope it wont be too late 😊

    • @codernerd7076
      @codernerd7076 Рік тому

      @@vlad.nicula thanks!

  • @syedsohailahmed6810
    @syedsohailahmed6810 Рік тому +1

    thank you sir

  • @ibrahimabdallah328
    @ibrahimabdallah328 Рік тому +1

    Great video. However, I can argue that the demonstration of useMemo is useless in this case

    • @vlad.nicula
      @vlad.nicula  Рік тому

      Thanks for the feedback. Care to explain why the useMemo was useless?

    • @vlad.nicula
      @vlad.nicula  Рік тому +1

      you're right! values behave very strangely: codesandbox.io/s/awesome-forest-15wwqg?file=/src/App.tsx
      The use memo mention was adapted from the older approach I had where props were passed to the form and there was a useEffect that depended on the values. I assumed there was a similar approach with the values, but it seems it works even with nested objets.
      The only way this breaks is if you change any of the values. If just one value changes, all values change, so yeah, a useMemo does not protect us in that case because even with a useMemo, there would be a new object created because of the new value.
      I'm glad I learned something too form sharing this video. I hope you'll tag along for the next ones and point out what you see missing or wrong.

  • @raymondcaddick6208
    @raymondcaddick6208 Рік тому

    I'm getting infinite loading when trying to add this to a form

    • @vlad.nicula
      @vlad.nicula  Рік тому

      Sorry to hear that 😞 not sure what you are referring to, but I hope you figure it out 👍

    • @raymondcaddick6208
      @raymondcaddick6208 Рік тому +1

      @@vlad.nicula my bad, I forgot to alias mui checkbox component so I was recursively re rendering the same component. All working now, thanks bro! Great tutorial. Keep up the great work

    • @vlad.nicula
      @vlad.nicula  Рік тому

      @@raymondcaddick6208 happy to hear that! I hope you’ll tag along for the next ones 👍

  • @marianschmidt5728
    @marianschmidt5728 Рік тому

    Promo-SM 🎊