Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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,463 Aufrufe โ€ข vor 2 Jahren โ€ขvia X (Twitter)

10 Kommentare

Profilbild von Brandon Webster
Brandon Webstervor 2 Jahren

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

Profilbild von Elad Rosenheim ๐Ÿ‡ฎ๐Ÿ‡ฑ๐Ÿ‡บ๐Ÿ‡ฆ
Elad Rosenheim ๐Ÿ‡ฎ๐Ÿ‡ฑ๐Ÿ‡บ๐Ÿ‡ฆvor 2 Jahren

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

Profilbild von Mike Chong (WildCat) ๐Ÿ”๏ธโญ๏ธ
Mike Chong (WildCat) ๐Ÿ”๏ธโญ๏ธvor 2 Jahren

Welcome back to jQuery

Profilbild von Robert van Hoesel
Robert van Hoeselvor 2 Jahren

Whoever is running your socials is doing an astronomical job

Profilbild von @otomir23.me ๐Ÿฆ‹
@otomir23.me ๐Ÿฆ‹vor 2 Jahren

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

Profilbild von Brandon McConnell
Brandon McConnellvor 2 Jahren

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:

Profilbild von Ryan Dsouza
Ryan Dsouzavor 2 Jahren

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

Profilbild von ๐Ÿ‘ฉ๐Ÿพโ€๐Ÿ’ป๐•บ๐–๐–”๐–—๐–” ๐•ฝ๐–Š๐–‰๐–Š๐–’๐–•๐–™๐–Ž๐–”๐–“๐Ÿ’ป
๐Ÿ‘ฉ๐Ÿพโ€๐Ÿ’ป๐•บ๐–๐–”๐–—๐–” ๐•ฝ๐–Š๐–‰๐–Š๐–’๐–•๐–™๐–Ž๐–”๐–“๐Ÿ’ปvor 2 Jahren

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

Profilbild von Avily Silva
Avily Silvavor 2 Jahren

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

Profilbild von xHomu
xHomuvor 2 Jahren

Bring back jQuery?

ร„hnliche Videos