Astro Launches Actions Similar like Next.js ("Quick" Reaction)

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ก.ย. 2024
  • Is Astro becoming more of a Next.js competitor? Astro just released actions similar to what Next.js offers. Let's take a quick look.
    Astro 4.8 Announcement - astro.build/bl...
    Astro Server Actions Proposal - github.com/wit...
    Astro Actions with Vanilla JS from Chris Pennington - github.com/cod...
    *Newsletter*
    Newsletter 🗞 - www.jamesqquic...
    *DISCORD*
    Join the Learn Build Teach Discord Server 💬 - / discord
    Follow me on Twitter 🐦 - / jamesqquick
    Check out the Podcast - compressed.fm/
    Courses - jamesqquick.co...
    *QUESTIONS ABOUT MY SETUP*
    Check out my Uses page for my VS Code setup, what recording equipment I use, etc. www.jamesqquic...

ความคิดเห็น • 16

  • @BhargavaMan
    @BhargavaMan 2 หลายเดือนก่อน +2

    tags are still processed at build time by Astro, and transpiled to regular JS. So you can use imports and it's all typesafe.
    tags are built as is, and won't be processed at all.

    • @JamesQQuick
      @JamesQQuick  2 หลายเดือนก่อน +1

      Thanks!!

  • @kamalkamals
    @kamalkamals 3 หลายเดือนก่อน

    action inspired from svelte no ??

  • @kristian970
    @kristian970 หลายเดือนก่อน

    It is great until your application has more than 10 routes. Then, TypeScript LSP starts lagging so much that it becomes hard to use.

  • @joshuamitchell6204
    @joshuamitchell6204 หลายเดือนก่อน

    I've just started a project in sveltekit but with astro db, actions and sever islands, Astro is looking like a lot of fun to use. Great video!

  • @vic_shine
    @vic_shine 3 หลายเดือนก่อน +2

    Please make more similar videos about Astro ❤

  • @MarkBennettCa
    @MarkBennettCa 3 หลายเดือนก่อน

    11:00 could they be using an import_map.json in the browser or doing something to resolve the import when compiling the typescript in the .astro file

  • @RubenMiquelino
    @RubenMiquelino 4 หลายเดือนก่อน

    Didn't test it, but i know typescript written on the client side is compiled and optimized by astro on build. I would guess the content of the actions defined, would also compile into the final code and be included in the final file after compilation.

  • @Michael-Martell
    @Michael-Martell 4 หลายเดือนก่อน +1

    What’s up!

  • @PraneyBehl
    @PraneyBehl 4 หลายเดือนก่อน

    Regarding the script tag, you could always inspect the source in the browser what does it get compiled to as it is just a script tags right?

  • @diegoulloao
    @diegoulloao 4 หลายเดือนก่อน +1

    12:25 astro way is easier to set the loading state IMO

    • @diwanshuji947
      @diwanshuji947 4 หลายเดือนก่อน +1

      Even it is easier to receive formdata and validation

  • @CyberTechBits
    @CyberTechBits 4 หลายเดือนก่อน

    Great content JQQ!

  • @lostinthenarrativve
    @lostinthenarrativve 4 หลายเดือนก่อน

    Hey James, is it possible to do ecommerce stuff with Astro ? something really simple actually like selling a couple of digital products.

    • @joshuaiz
      @joshuaiz 4 หลายเดือนก่อน

      Yes it is. There are several examples in the Astro docs but I built a mid-to-large ecommerce site with Astro + React: monicaandandy.com