HTMX Tutorial for Beginners #6 - Adding Redirects

Sdílet
Vložit
  • čas přidán 7. 07. 2024
  • In this HTMX tutorial series for beginners, you'll learn what HTMX is, and how to make dynamic web applications with it.
    🔥🥷🏼Get access to premium courses on Net Ninja Pro:
    netninja.dev/
    📂🥷🏼 Access the course files on GitHub:
    github.com/iamshaunjp/htmx-fo...
    📂🥷🏼 Starter project on GitHub:
    github.com/iamshaunjp/htmx-fo...
    🧠🥷🏼 HTML & CSS Crash Course:
    • HTML & CSS Crash Cours...
    🧠🥷🏼 Node.js & Express Crash Course:
    • Node.js Crash Course T...
    🔗🥷🏼 HTMX docs:
    htmx.org/docs/

Komentáře • 6

  • @positiveAddiction1
    @positiveAddiction1 Před měsícem

    Fantastic video!

  • @ozanmuyes
    @ozanmuyes Před 29 dny +3

    That (redirection) is a good move towards de-duplicating the code, but it creates another round-trip for the client (get the response for the initial POST request to see 302 and make another request to get the resulting HTML). Why not using internal redirect or rendering the "component" on the POST handler?

  • @QuintusGaius
    @QuintusGaius Před dnem

    I've been doing the server logic in Laravel. So much easier than express.

  • @maskman4821
    @maskman4821 Před měsícem +1

    Great tutorial, redirect makes much sense than returning ❤

  • @piecioshka
    @piecioshka Před 27 dny +1

    But why the user wasn't redirected to this new book profile page? :)