News for hackers. Stuff that matters.
Re:Astro 1.0 – a web framework for building fast, content-fo... by dsego on Wednesday August 10, 2022 @06:37AM (#32409920)
Which looks nicer? Eta vs JSX

   <%~ includeFile('./navbar', { pages: [
     'home',
     'about',
     'users'
   ] }) %>

   <navbar pages={['home', 'about', 'users']} />


> would just be JavaScript functions that take props and return some JSX

They can also be async functions that process data independently. Whereas templates are commonly just passed in data from the controller.

https://github.com/dsego/ssr-playground/#jsx-partials

There are no comments on this comment yet.