https://htmx.org logo
Join Discord
Powered by
# πŸ”₯-django-htmx
  • h

    hundreds-camera-24900

    11/05/2021, 2:18 PM
    I have been doing next.js for fe stuff for the past couple years and alpine does 90% of what I want and doesn't take over the whole app
  • h

    hundreds-camera-24900

    11/05/2021, 2:19 PM
    My demo apps with Alpine/htmx have been 1/3 as much code as it would have been to do with react + drf
  • b

    brave-raincoat-81051

    11/05/2021, 2:20 PM
    yeah I use react + drf at work, admittedly fumbling my way through the frontend stuff (I'm way more of a backend developer) and its a ton of work to get everything plumbed together and working
  • h

    hundreds-camera-24900

    11/05/2021, 2:20 PM
    Is there any desire to make a hotwire like lib that uses htmx?
  • h

    hundreds-camera-24900

    11/05/2021, 2:21 PM
    Hotmx
  • b

    brave-raincoat-81051

    11/05/2021, 2:22 PM
    Just on the name alone it should be built, doesn't matter if it meets a demand the name is too good πŸ˜„
  • m

    mysterious-toddler-20573

    11/05/2021, 2:28 PM
    hotmax
  • b

    bitter-dog-98292

    11/05/2021, 4:04 PM
    hxwire
  • e

    eager-tiger-27508

    11/05/2021, 6:07 PM
    For those that have used hyperscript and Alpine.js with TailwindCSS. Is hyperscript good for "microinteractions" like tab selection highlighting, toggle switch animations, transitions, etc.? Would the animations for the examples on https://tailwindui.com/ be easier to implement in hyperscript or Alpine.js, in your opinion? https://tailwindui.com/ uses Alpine.js. It seems like Alpine.js is more concise for this type of use case, but hyperscript would be more useful for more complicated user interaction. I haven't used hyperscript yet so I can't say. If nobody really knows I'll just test it out to see and report back. Just curious to see if anyone else has had the same dilemma.
  • c

    careful-answer-21233

    11/05/2021, 6:15 PM
    I've been writing an ecommerce website using hyperscript with tailwind. So far it's been working together nicely
  • g

    gorgeous-airport-54386

    11/05/2021, 6:16 PM
    Microinteractions are one of the main use cases for _. Alpine fixes the "where's that event listener" problem, but does nothing about the DOM APIs.
  • g

    gorgeous-airport-54386

    11/05/2021, 6:18 PM
    I think alpine is better for larger components like data tables, because of x-for and reactivity. For microinteractions, you will need to manipulate the DOM directly a lot more, which is a dream in hyperscript.
  • e

    eager-tiger-27508

    11/05/2021, 6:20 PM
    Ahh okay. I need to familiarize myself with hyperscript then! Thanks for explaining.
  • e

    eager-tiger-27508

    11/05/2021, 6:22 PM
    I use TailwindUI pretty extensively for various projects. I'm already all in htmx. Would people be interested in an implementation of the TailwindUI components in hyperscript? I feel like that would be useful. I was gonna implement a few just to test hyperscript out and for my own use, might as well go all the way right?
  • b

    bitter-dog-98292

    11/05/2021, 6:22 PM
    I am using HTMX and alpinejs where alpinejs is for ui components and HTMX to query Django routes. I am not sure if I should include hyperscript in the mix or replace alpine with it.
  • g

    gorgeous-airport-54386

    11/05/2021, 6:23 PM
    If you already have alpine, _hyperscript would be bloat i think
  • g

    gorgeous-airport-54386

    11/05/2021, 6:24 PM
    It's like having both react and jquery
  • e

    eager-tiger-27508

    11/05/2021, 6:25 PM
    Misread your comment. I guess I will go ahead and implement some of those TailwindUI components in hyperscript and see what conclusion I come to. Should be fun.
  • b

    bitter-dog-98292

    11/05/2021, 6:26 PM
    @eager-tiger-27508 I am also using tailwindui but I think you don’t have the right to create a library out of it. https://headlessui.dev/, that one I think you can.
  • b

    bitter-dog-98292

    11/05/2021, 6:26 PM
    @gorgeous-airport-54386 yeah that’s what I was thinking
  • e

    eager-tiger-27508

    11/05/2021, 6:29 PM
    @bitter-dog-98292 hmm not even examples? I was thinking about that and you're probably right. I guess I'll just start with headless UI anyway since it's smaller. Maybe, if it seems like something people could use, we could reach out to TailwindCSS creators and see if they'd be interested in having hyperscript implementations of the TailwindUI components? Just an idea.
  • e

    eager-tiger-27508

    11/05/2021, 6:30 PM
    Could make hyperscript more popular and hyperscript users would be inclined to use TailwindUI since the code for the animations and transitions will be there once they buy TailwindUI.
  • e

    eager-tiger-27508

    11/05/2021, 6:31 PM
    Side by side with the Alpine.js implementations of course
  • b

    bitter-dog-98292

    11/05/2021, 6:32 PM
    @eager-tiger-27508 well you can do your library in private but you are not allowed to distribute it. For headlessui, You can since it’s open source. And you can test but from what I saw, people proposed for svelte but they refused. Probably because money.
  • b

    bitter-dog-98292

    11/05/2021, 6:32 PM
    Even alpinejs they refused. And both for headlessui and tailwindui
  • b

    bitter-dog-98292

    11/05/2021, 6:33 PM
    But nothing prevents you to make a tailwindcss ui library for hyperscript. It should not be a tailwindui copy paste.
  • e

    eager-tiger-27508

    11/05/2021, 6:34 PM
    @User Oh really? I guess that makes sense. It's just nice for people who use Alpine.js because they use Alpine.js for the animations on the TailwindUI website, so you have the CSS and an example of how to apply the animations, transitions, etc. that some of the components require.
  • b

    bitter-dog-98292

    11/05/2021, 6:37 PM
    @eager-tiger-27508 yes because before HTMX and Alpine I tried vuejs and svelte and yeah vuejs there is because they maintain react and vue but the rest is too much work so they said no. And even vanilla JavaScript is out of the table.
  • b

    bitter-dog-98292

    11/05/2021, 6:38 PM
    Of yeah they use alpinejs on tailwindui website ? So yeah it’s only because there are more react and vuejs users/hype so more easy money from people too lazy to code their own components
  • e

    eager-tiger-27508

    11/05/2021, 6:42 PM
    Yep. If you open dev tools on the TailwindUI website for the components you have access to, you can see the Alpine.js they use to implement the example. It's convenient for Alpine.js users.
1...131415...100Latest