HTMX Tutorial for Beginners #6 - Adding Redirects
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/
Fantastic video!
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?
Was curious about this too.
I've been doing the server logic in Laravel. So much easier than express.
Great tutorial, redirect makes much sense than returning ❤
But why the user wasn't redirected to this new book profile page? :)