Hey everyone, and thanks for tuning into my talk for React Semi 2023. I'm Elion, I'm a software engineer at Veebridge in Belgium, and for a short while I've also been an Astro Ambassador and now I'm also an Astro Maintainer.
And today I'm going to tell you about Astro. So if you do want to follow me online, or reach out to me if you have any questions, you can do that with at ElionCodes, I'm most active on Twitter, so that would be the easiest, but feel free to reach or contact me anywhere you find me on, okay.
So now that you know who I am, let's start by the question of this whole talk, which is, what is Astro? Well, Astro isn't just like a lightning-fast framework, it's actually even better than those blazingly fast ones. I'd like to call it astronomically fast. So in short, Astro is this all-in-one framework built for speed, and that might sound as an empty box right now, but I promise you that it will get clearer over the following slides why I say that.
So, my goal for today is to introduce you to the Astro Island architecture, and show you how it can be used with React, so you'll be extending React with Astro's capabilities. So, let me start out by showing you a theoretical example. So, take this page for instance. We can divide all of these HTML structures in blocks, see it as a Lego baseplate? With blocks added on the baseplate, and on that blocks, little blocks, and totally, you get the point.
So, we already do this in a couple of frameworks out there. Well, most UI frameworks actually, being Dittsveld, Vue, Solider, React. We are familiar with this component design. But in Astro, you can actually do something like this. Well, it's theoretically possible, not recommended, it will become clear why. But you can choose different colors or flavors for each brick, so referring to the color as being the UI framework. For instance, if you want a component to be solid JS for instance, or you want to component in Svelte, you can do it with Astro. So, that's why we call Astro a bring your own framework. So, Astro is actually a framework that makes it able for you to bring your own framework onto it which means that you can bring it and I'll show you that in the following slides. For instance, all the integrations can be checked out on Astro's website itself. There is a full page dedicated to all integrations, all official and unofficial existing integrations. And, as you can see, you tuned in for an event that's mainly about React. So, I will show you what React integration looks like in the following slides. But, before we dive into React with Astro, we of course have to start a new Astro project. So, let me pop into the terminal here and show you what our CLI looks like. So, you can use any package manager you like. I'd like to use pnpm. But feel free to use npm or Yarn. So, you just create a new thing and then you see Houston.
Comments