🚀React like a PRO with HIGHER ORDER COMPONENTS in 2024🔁

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

КОМЕНТАРІ • 7

  • @simohawkins9124
    @simohawkins9124 4 місяці тому

    Great video, good explanation, thank u
    The video is duplicated during editing or exporting, make sure u look into the issue

    • @codingwithlulu
      @codingwithlulu  4 місяці тому +1

      Thank you, maybe miss that out. Will fix that Asap

    • @codingwithlulu
      @codingwithlulu  4 місяці тому +1

      unfortunately i can't fix this one, luckily just duplicate so it should be fine, but will double check my next ones, thanks for the heads up

    • @simohawkins9124
      @simohawkins9124 4 місяці тому

      @@codingwithlulu you got this,👍 keep it up

  • @MultiSalvo80
    @MultiSalvo80 4 місяці тому

    Thanks for the video, i use a ProtectedRoute component and wrap my route checking the permissions, is this HOC too right or some other pattern?
    Simple Example:
    const ProtectedRoute = ({children}) => {
    if (permitted) return children;
    else return Not permitted
    }

    • @codingwithlulu
      @codingwithlulu  3 місяці тому +1

      This method is very common to handle protected routes. Of course they are always many different ways to do a thing, as long your method is safe and works, you are good. Will create special video to handle protected routes 😉

    • @MultiSalvo80
      @MultiSalvo80 3 місяці тому +1

      @@codingwithlulu thanks!