Skip navigation
People really sleeping on <script> ๐Ÿ™„
0:00 / 0:28

People really sleeping on <script> ๐Ÿ™„

Astro

@astrodotbuild102K followers

Visit on X
1,253 likesDownloadOriginal post

311,463 views

People really sleeping on <script> ๐Ÿ™„ Astro lets you put TypeScript and npm packages in there. Who needs a framework when you have the DOM at home?

10 Comments

Comments from the original post on X (Twitter)

  • Brandon Webster's profile picture

    @bkwebster

    โ€œWe have DOM at homeโ€ DOM at home: (jk tho Astro is dope.)

    39 likes

  • Elad Rosenheim ๐Ÿ‡ฎ๐Ÿ‡ฑ๐Ÿ‡บ๐Ÿ‡ฆ's profile picture

    @rozrozelad

    If only I could have some minimal state and event handlers straight in Astro components, I wouldn't have to reach for React (or do more boilerplate instead). On one hand, who needs more frameworks. On the other, a very lightweight native solution would go a long way...

    20 likes

  • Mike Chong (WildCat) ๐Ÿ”๏ธโญ๏ธ's profile picture

    @WildCat_io

    Welcome back to jQuery

    18 likes

  • Robert van Hoesel's profile picture

    @robertvhoesel

    Whoever is running your socials is doing an astronomical job

    12 likes

  • @otomir23.me ๐Ÿฆ‹'s profile picture

    @otomir23

    the point of frameworks is simple state binding, not "typescript and npm packages"

    8 likes

  • Brandon McConnell's profile picture

    @branmcconnell

    Much of this is why I actually switched to using frameworks over plain JS โ€“ `querySelector` is not scoped, so something general like `querySelector('button')` would target the first button found on the page โ€“ many of the benefits of frameworks involve getting away from manual `addEventListener` calls and manually using `textContent`, `setHTML`, etc. and toward dynamic reactivity Granted, the proposed Signals API will hopefully alleviate some of this โ€” Some examples โ€“ with svelte: โ€“ with plain js:

    8 likes

  • Ryan Dsouza's profile picture

    @ryands1701

    Itโ€™s amazing! I did the same with HTMX and no framework needed :)

    7 likes

  • ๐Ÿ‘ฉ๐Ÿพโ€๐Ÿ’ป๐•บ๐–๐–”๐–—๐–” ๐•ฝ๐–Š๐–‰๐–Š๐–’๐–•๐–™๐–Ž๐–”๐–“๐Ÿ’ป's profile picture

    @therealokoro__

    It's scary how easy this is ๐Ÿ˜…

    4 likes

  • Avily Silva's profile picture

    @avilyre

    What's that ? Man Astro is reactive by default ? ๐Ÿ˜ฆ

    2 likes

  • xHomu's profile picture

    @imagineherhappy

    Bring back jQuery?

    1 like