跳过导航
People really sleeping on <script> 🙄
0:00 / 0:28

People really sleeping on <script> 🙄

Astro

@astrodotbuild10万 位关注者

在 X 上查看
1,253 个赞下载原帖

311,463 次观看

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 条评论

评论来自 X (Twitter) 上的原帖

  • Brandon Webster 的头像

    @bkwebster

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

    39 个赞

  • Elad Rosenheim 🇮🇱🇺🇦 的头像

    @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 个赞

  • Mike Chong (WildCat) 🏔️⭐️ 的头像

    @WildCat_io

    Welcome back to jQuery

    18 个赞

  • Robert van Hoesel 的头像

    @robertvhoesel

    Whoever is running your socials is doing an astronomical job

    12 个赞

  • @otomir23.me 🦋 的头像

    @otomir23

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

    8 个赞

  • Brandon McConnell 的头像

    @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 个赞

  • Ryan Dsouza 的头像

    @ryands1701

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

    7 个赞

  • 👩🏾‍💻𝕺𝖐𝖔𝖗𝖔 𝕽𝖊𝖉𝖊𝖒𝖕𝖙𝖎𝖔𝖓💻 的头像

    @therealokoro__

    It's scary how easy this is 😅

    4 个赞

  • Avily Silva 的头像

    @avilyre

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

    2 个赞

  • xHomu 的头像

    @imagineherhappy

    Bring back jQuery?

    1 个赞