htmx in 100 seconds
Key Takeaways
The video demonstrates the basics of htmx, an HTML-focused UI library that can handle data fetching and rendering in web applications without complex JavaScript code or frameworks, and showcases its features and usage.
Full Transcript
htmx a UI library for the web that can replace your JavaScript framework with the Simplicity of HTML playing HTML is more capable than you think every time you click on a link or submit a form it automatically sends an HTTP request to the server and renders the response in the UI it's so easy but why stop there HDMX Embraces an architectural constraint known as Hyper media as the engine of application state by adding new attributes to HTML that can handle the complex requirements of modern uis it gives you the ability to make a request to the server from any element by providing an attribute with an HTTP verb and the URL endpoint on the server it'll take the response from the server and replace this element asynchronously or it can specify a Target to replace a different element on the page it can also customize the event on which it's triggered along with modifiers like delay and throttle to control the way the request is sent it keeps track of the loading state so you can show a spinner apply CSS transitions for animation and builds on the HTML validation API to validate forms it even has a client-side router called boost that can make any traditional web application feel like a faster single page application and it also includes extensions for more advanced features like websockets and Integrations with other HTML Frameworks like Alpine to install it simply Import htmx in a script tag from the head of an HTML document you just put the hyper back into hypertext now all you need is a server in your favorite programming language that returns html text as a response now we can use the HX get attribute to make a request to this endpoint along with HX swap to replace this element with the HTML on the response when swapping though we don't only have the option to replace the outer HTML but we could also append or prepend the response to the existing UI or the HX Target attribute allows us to move the UI to a completely different element it finds that element with a CSS selector but has additional syntax like next and closest allowing you to easily find the proper element without a bunch of custom IDs we might also use HDMX indicator to show a loading spinner and write a CSS transition animation for the incoming element behind the scenes a HDMX has an extensive event system that you can tap into by listening to custom events with JavaScript and if you want to run your own client-side JavaScript the HX on attribute allows you to bind a JavaScript function to any element and that's all it takes to build a highly polished full stack HTML application on the information superhighway this has been htmx in 100 seconds do you love it or do you hate it let me know in the comments thanks for watching and I will see you in the next one
Original Description
Learn the basics of htmx - an HTML-focused UI library that can handle data fetching and rendering in web applications without complex JavaScript code or frameworks.
#webdevelopment #javascript #100SecondsOfCode
💬 Chat with Me on Discord
https://discord.gg/fireship
🔗 Resources
- htmx docs https://htmx.org
- HTML in 100 seconds https://youtu.be/ok-plXXHlWw
- Nuxt in 100 Seconds https://youtu.be/dCxSsr5xuL8
- Math for Programmers https://youtu.be/lkIFF4maKMU
🔥 Get More Content - Upgrade to PRO
Upgrade at https://fireship.io/pro
Use code YT25 for 25% off PRO access
🎨 My Editor Settings
- Atom One Dark
- vscode-icons
- Fira Code Font
🔖 Topics Covered
- What is htmx?
- htmx quickstart tutorial
- Alpine.js vs htmx
- Do I need a JavaScript framework?
- What is AJAX in web development?
- htmx boost vs Turbolinks
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Fireship · Fireship · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Angular 4 Development and Production Environments with Firebase
Fireship
OAuth with Angular and Firebase Tutorial
Fireship
Anonymous Authentication with Angular and Firebase - Lazy Registration
Fireship
Angular Router Guards for Firebase Users
Fireship
Angular Firebase CRUD App with NoSQL Database Tutorial
Fireship
Upload Files from Angular to Firebase Storage
Fireship
How to Deploy an Angular App to Firebase Hosting
Fireship
Sharing Data between Components in Angular
Fireship
Loading Spinners for Asynchronous Firebase Data
Fireship
Angular 4 Transactional Email with Google Firebase Cloud Functions
Fireship
Firebase Database Rules Tutorial
Fireship
Autocomplete Search with Angular4 and Firebase
Fireship
Reddit Inspired Upvoting System with Angular and Firebase NoSQL
Fireship
Angular Drag-and-Drop File Uploads to Firebase Storage
Fireship
Text Translation with Firebase Cloud Functions onWrite and Angular 4
Fireship
Custom Usernames with Firebase Authentication
Fireship
Twitter-Inspired Follow Unfollow Feature with Firebase and Angular 4
Fireship
Simple Pagination with Firebase and Angular 4
Fireship
How to Connect Firebase Users to their Data - 3 Methods
Fireship
Add Toast Message Notifications to your Angular App
Fireship
Facebook-Inspired Reactions System with Angular and Firebase
Fireship
Learn NgModule in Angular with Examples
Fireship
Lazy Loading Components in Angular 4
Fireship
Stripe Checkout Payments with Angular and Firebase - Part 1
Fireship
Process Stripe Payments with Firebase Cloud Functions - Part 2
Fireship
Selling Digital Content in Angular with Stripe Payments - Part 3
Fireship
Angular 4 Full Text Search with Algolia - Part 1
Fireship
Algolia with Firebase Cloud Functions - Part 2
Fireship
Firebase Phone Authentication in Angular 4
Fireship
Top 7 RxJS Concepts for Angular Developers
Fireship
Learn Angular Animations with 5 Examples
Fireship
Advanced Firebase Data Filtering (Multi-Property)
Fireship
Realtime Maps with Mapbox + Firebase + Angular
Fireship
Angular Reactive Forms with Firebase Database Backend
Fireship
Send Push Notifications in Angular with Firebase Cloud Messaging
Fireship
Top 7 Ways to Debug Angular 4 Apps
Fireship
Infinite Scroll with Angular and Firebase
Fireship
Use TypeScript with Firebase Cloud Functions
Fireship
Realtime Graphs and Charts with Plotly and Firebase
Fireship
Role-Based User Permissions in Firebase
Fireship
User Presence System in Realtime - Online, Offline, Away
Fireship
Location-based Queries with GeoFire and Angular Google Maps
Fireship
Angular ngrx Redux Quick Start Tutorial
Fireship
Angular Ngrx Effects with Firebase Database
Fireship
Progressive Web Apps with Angular
Fireship
Angular Ngrx with Firebase Google OAuth User Authentication
Fireship
RxJS Quick Start with Practical Examples
Fireship
Send SMS Text Messages with Twilio and Firebase
Fireship
Firebase Database Performance Profiling
Fireship
Native Desktop Apps with Angular and Electron
Fireship
Subscription Payments with Stripe, Angular, and Firebase
Fireship
Firestore with AngularFire5 Quick Start Tutorial
Fireship
Angular HTTP Client Quick Start Tutorial
Fireship
Google Sign-In with Firestore Custom User Data
Fireship
Star Review System from Scratch with Firestore + Angular
Fireship
Angular Chatbot with Dialogflow (API.ai)
Fireship
Learn @ngrx/entity and Feature Modules
Fireship
Infinite Scroll Pagination with Firestore
Fireship
Faster Firestore via Data Aggregation
Fireship
Contentful - CMS for Angular Progressive Web Apps
Fireship
More on: Tool Use & Function Calling
View skill →Related Reads
📰
📰
📰
📰
Why SnapDOM Beats html2canvas for DOM-to-Image Capture
Dev.to · Juan Martin
I built 42 landing page templates as single HTML files (no npm, no build step)
Dev.to · Segcam spa
Part 7B — Section 2 — React Event Handling Explained: Forms, Event Object & User Input.
Medium · JavaScript
Stop Using window.resize for Everything: A Practical Guide to the ResizeObserver API
Medium · JavaScript
🎓
Tutor Explanation
DeepCamp AI