Loading video...

Video Failed to Load

Go Home

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?

311,416 views โ€ข 1 year ago โ€ขvia X (Twitter)

10 Comments

Brandon Webster's profile picture
Brandon Webster1 year ago

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

Elad Rosenheim ๐Ÿ‡ฎ๐Ÿ‡ฑ๐Ÿ‡บ๐Ÿ‡ฆ's profile picture
Elad Rosenheim ๐Ÿ‡ฎ๐Ÿ‡ฑ๐Ÿ‡บ๐Ÿ‡ฆ1 year ago

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

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

Welcome back to jQuery

Robert van Hoesel's profile picture
Robert van Hoesel1 year ago

Whoever is running your socials is doing an astronomical job

@otomir23.me ๐Ÿฆ‹'s profile picture
@otomir23.me ๐Ÿฆ‹1 year ago

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

Brandon McConnell's profile picture
Brandon McConnell1 year ago

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:

Ryan Dsouza's profile picture
Ryan Dsouza1 year ago

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

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

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

Avily Silva's profile picture
Avily Silva1 year ago

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

xHomu's profile picture
xHomu1 year ago

Bring back jQuery?

Related Videos