Get Started With HTMX Using Bun, Hono & more!

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 พ.ย. 2024

ความคิดเห็น • 21

  • @gcollazo
    @gcollazo 9 หลายเดือนก่อน +10

    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  9 หลายเดือนก่อน +1

      Oh thats a really good point. Pinning your comment so everyone can see it!

  • @agarridoboris
    @agarridoboris 4 หลายเดือนก่อน

    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 5 หลายเดือนก่อน

    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!

  • @gosnooky
    @gosnooky 8 หลายเดือนก่อน

    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  8 หลายเดือนก่อน

      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.

  • @AbegazNap
    @AbegazNap 9 หลายเดือนก่อน

    your webstorm is looking kinda fine blud, mind sharing what theme you are using?

    • @cdbrw
      @cdbrw  9 หลายเดือนก่อน +1

      its called "one dark vivid" 🫡

  • @whatis_me
    @whatis_me 7 หลายเดือนก่อน

    Could you make htmx +django tutorials as well?

    • @cdbrw
      @cdbrw  7 หลายเดือนก่อน

      I can look into it 🤔

  • @noext7001
    @noext7001 9 หลายเดือนก่อน +1

    was the point of htmx is not using tsx in the first place ?

    • @cdbrw
      @cdbrw  9 หลายเดือนก่อน +3

      .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 9 หลายเดือนก่อน

      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 9 หลายเดือนก่อน

      @@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.

  • @technoM4niac
    @technoM4niac 9 หลายเดือนก่อน

    Incredible video.

  • @TerenceKearns
    @TerenceKearns 5 หลายเดือนก่อน +1

    Your jump cuts are too fast to read the code.

  • @linodil
    @linodil 8 หลายเดือนก่อน

    Why didn't you choose elysia over hono

    • @cdbrw
      @cdbrw  8 หลายเดือนก่อน

      just mainly wanted to try something new

    • @linodil
      @linodil 8 หลายเดือนก่อน

      @@cdbrw Elysia is faster and more compatible with Bun. But what's your thought

  • @ev3rybodygets177
    @ev3rybodygets177 9 หลายเดือนก่อน +1

    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 8 หลายเดือนก่อน

      No