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,416 Aufrufe • vor 1 Jahr •via X (Twitter)

10 Kommentare

Profilbild von Brandon Webster
Brandon Webstervor 1 Jahr

“We have DOM at home” DOM at home: (jk tho Astro is dope.)

Profilbild von Elad Rosenheim 🇮🇱🇺🇦
Elad Rosenheim 🇮🇱🇺🇦vor 1 Jahr

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 1 Jahr

Welcome back to jQuery

Profilbild von Robert van Hoesel
Robert van Hoeselvor 1 Jahr

Whoever is running your socials is doing an astronomical job

Profilbild von @otomir23.me 🦋
@otomir23.me 🦋vor 1 Jahr

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

Profilbild von Brandon McConnell
Brandon McConnellvor 1 Jahr

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 1 Jahr

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

Profilbild von 👩🏾‍💻𝕺𝖐𝖔𝖗𝖔 𝕽𝖊𝖉𝖊𝖒𝖕𝖙𝖎𝖔𝖓💻
👩🏾‍💻𝕺𝖐𝖔𝖗𝖔 𝕽𝖊𝖉𝖊𝖒𝖕𝖙𝖎𝖔𝖓💻vor 1 Jahr

It's scary how easy this is 😅

Profilbild von Avily Silva
Avily Silvavor 1 Jahr

What's that ? Man Astro is reactive by default ? 😦

Profilbild von xHomu
xHomuvor 1 Jahr

Bring back jQuery?

Ähnliche Videos