Тёмный

Get Started With HTMX Using Bun, Hono & more! 

CodeBrew
Подписаться 4,1 тыс.
Просмотров 8 тыс.
50% 1

Опубликовано:

 

5 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 21   
@gcollazo
@gcollazo 8 месяцев назад
At 5:23, instead of triggering a htmx request on load, you could just render the to-dos in the component on the server-side. That way the first load of the page comes with all the to-dos already there. No need to use htmx to do that.
@cdbrw
@cdbrw 8 месяцев назад
Oh thats a really good point. Pinning your comment so everyone can see it!
@agarridoboris
@agarridoboris 2 месяца назад
megalike to this video, the idea of using tsx as the templating language is great. i was looking for a templating engine but your approach is much better. Thanks
@Smoonwalkerm
@Smoonwalkerm 4 месяца назад
Im using this stack...and having a problem...I had to use htmx:afterRequest api on script tags, because I have other actions to do if a request ended correctly (like fire notifications, popups,etc)...my problem is I'm not being able of pass the htmx response data to another jsx component using params (because is inside script tags)...this is driving me crazy last two days, if you can give me a hand, would be much appreciated. Great video!
@AbegazNap
@AbegazNap 8 месяцев назад
your webstorm is looking kinda fine blud, mind sharing what theme you are using?
@cdbrw
@cdbrw 8 месяцев назад
its called "one dark vivid" 🫡
@whatis_me
@whatis_me 6 месяцев назад
Could you make htmx +django tutorials as well?
@cdbrw
@cdbrw 6 месяцев назад
I can look into it 🤔
@TerenceKearns
@TerenceKearns 4 месяца назад
Your jump cuts are too fast to read the code.
@gosnooky
@gosnooky 7 месяцев назад
Notice how when you add "class" and "for" attributes, you get yellow warning squiggles - being a TSX file, it assumes you're using React which requires "className" and "htmlFor". With this non-React JSX you're using I assume these attributes are legal, so is there a setting in eslint that allows these without a warning?
@cdbrw
@cdbrw 7 месяцев назад
I think this is more an editor warning than an eslint thing. With Webstorm, you can simply just hover over it and click "add to custom attributes" which will get rid of the warning for you. I don't see the same warnings in vscode.
@noext7001
@noext7001 8 месяцев назад
was the point of htmx is not using tsx in the first place ?
@cdbrw
@cdbrw 8 месяцев назад
.tsx just tells typescript that the file contains jsx which we're using simply as just a templating language With htmx the goal is to have our backend return html chunks which were doing through jsx
@muhammadhafizuddin2965
@muhammadhafizuddin2965 8 месяцев назад
For fetching ajax request and all that yeaa, but do you save every state of the button in the server? Dont make sense right? Htmx is for talking with server, kot for doing some button changing state depending on variable. No need backend server for that.
@MarkVolkmann
@MarkVolkmann 8 месяцев назад
@@muhammadhafizuddin2965Correct. For interactions that do not require sending anything server, many people that use htmx combine the use of Alpine. It has things in common with htmx such as it’s a small, client-side JS library and it is implemented as a set of HTML attributes.
@ev3rybodygets177
@ev3rybodygets177 8 месяцев назад
i dont think you would consider htmx application as a SPA..... i pretty sure raw html is sent over the wire and htmx just swaps it in.... it def closer to ssr...
@twitchizle
@twitchizle 7 месяцев назад
No
@technoM4niac
@technoM4niac 8 месяцев назад
Incredible video.
@linodil
@linodil 7 месяцев назад
Why didn't you choose elysia over hono
@cdbrw
@cdbrw 7 месяцев назад
just mainly wanted to try something new
@linodil
@linodil 7 месяцев назад
@@cdbrw Elysia is faster and more compatible with Bun. But what's your thought
Далее
HTMX - What they don't want you to know!
13:28
Просмотров 85 тыс.
Тренд Котик по очереди
00:10
Просмотров 334 тыс.
would you eat this? #shorts
00:13
Просмотров 1 млн
HTMX: 3 IRL Use Cases
18:33
Просмотров 118 тыс.
Laravel vs Rails for Javascript developers
19:50
Просмотров 4 тыс.
You don't need a frontend framework
15:45
Просмотров 127 тыс.
I Stopped Using Express.js: Because Bun and Hono 🔥
10:23
HTMX Sucks
25:16
Просмотров 125 тыс.
Why HTMX and Golang? The answer might surprise you...
12:04
A Very Simple Tech Stack
7:58
Просмотров 71 тыс.
Bun with HTMX and Hono: first impressions and demo!
22:55