I’m impressed by HTMX #coding #javascript

Posted by

HTMX looks pretty neat

HTMX looks pretty neat

If you’re a developer who loves coding in JavaScript, you’ve probably heard of HTMX. This library is gaining traction for its ability to create smooth, interactive web applications with minimal effort.

HTMX is a lightweight JavaScript library that allows developers to create dynamic web pages using HTML attributes. With HTMX, you can easily perform AJAX requests, manipulate the DOM, and update the page content without having to write a lot of complex JavaScript code.

One of the key features of HTMX is its simplicity. You can add HTMX attributes to your existing HTML elements to enable dynamic behavior, such as loading new content when a button is clicked or submitting a form without a full page refresh.

HTMX also integrates seamlessly with other JavaScript libraries, such as jQuery and Bootstrap, making it easy to enhance your existing web applications with dynamic features.

Overall, HTMX is a great tool for developers who want to create modern, interactive web applications without getting bogged down in complex JavaScript code. If you haven’t tried it yet, give HTMX a shot and see how it can streamline your web development workflow.

So, whether you’re a seasoned JavaScript developer or just getting started, HTMX is definitely worth checking out. Its simplicity, performance, and flexibility make it a valuable addition to any developer’s toolkit. Give it a try and see for yourself!

0 0 votes
Article Rating
35 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
@tezismith8795
7 months ago

You can have a select element with a hx-get attribute and when you change it it automatically sends a get request!

Have a list and want a filter option?

<select name="filter" hx-get="/list" hx-target="#list" hx-swap="outerHTML">

@All3me1
7 months ago

It's a JavaScript library??? I dont think so

@apestogetherstrong341
7 months ago

lightweight version of react, I would say

@buc991
7 months ago

looks ugly, ofc add some tailwind on top for more unreadability. Separation of concerns who cares, right. Next step they'll add sql inline to html lol. Why suddenly writing all inline and obscure became good, imagine how to support and scale this.

@Alex_online
7 months ago

I’d love to see a more in-depth video on using blades and htmx together with layouts, components, and pages

@advanceringnewholder
7 months ago

Is this modern PHP?

@onepunchman8721
7 months ago

How do you handle errors or other api call events?

@amazekhashaa7309
7 months ago

what was that?

@rhatalos1997
7 months ago

Sounds like a solid idea to improve multi-page applications but a terrible idea to improve single-page applications.

@edhahaz
7 months ago

Offline use ? No! Latency dependent app on every button click ? yeeess!!

@microspace_ufa
7 months ago

Too much magic

@Caborrrl
7 months ago

Elon Musk is a pioneer LMFAO.

@unknown-user001
7 months ago

htmx and alpine + Rust or Go is so good

@bestcodingchannel
7 months ago

It has massive security leaks, vulnerable to xhr attack

@daze8410
7 months ago

Looks like a great way to make spaghetti

@kenonerboy
7 months ago

Enjoy including html into your data

@WaylonWalker
7 months ago

Love the poling example with hx-trigger='every 1s'.

@geek_24
7 months ago

Amazing

@onyilimba
7 months ago

Surprised how this is gaining traction now. Been using HTMX for 3 years now.

@kimga85
7 months ago

Htmx + alpine or hyperscript is much better than something like react for almost all regular websites. As long as you use a backend that render html, something like django.