Astro: writing static websites like it’s 2023
I took a template made by TailwindUI for Next.js and ported each of the components from React to Astro. Here’s my experience in building my personal blog with it.
I’m Antonio, a software engineer based in Pisa, Italy. I work with backend technologies and I’m passionate about distributed systems. In my free time, I organize events with the local community I founded: pisa.dev.
I took a template made by TailwindUI for Next.js and ported each of the components from React to Astro. Here’s my experience in building my personal blog with it.
In order to do server side rendering, both the server (for the first rendering) and the client (after the app hydration) will need to be able to call your API and fetch the data they need on the page. We'll talk about this soon. As a software engineer I have a fetish for 'clean code'. When I write a UI component I'd like it to be reusable, and to be in charge of only one thing (single responsability principle, right?).
Even if Node was a big successful project Ryan regretted some of his decisions. NPM, the primary package manager for Node and the central core of the Node ecosystem, is a commercial company and it was acquired by Microsoft recently. This doesn't necessarily means anything bad but it can affect the culture behind the project.