Creating an Astro layout - screencast and transcript
This is a screencast and transcript of refactoring one of the basic Astro examples to create an initial BaseLayout component.
This is a screencast and transcript of refactoring one of the basic Astro examples to create an initial BaseLayout component.
Now that I’m on a roll with dynamic routing via getStaticPaths() in Astro, I’m checking the next item off my Astro blog wish list: pages to display blog posts by tag.
Astro sites allow you to use React, but they aren’t React, themselves. Understanding the differences between React and Astro can help you get started more quickly, so here are some thoughts on how to think like an Astro-naut!
Yes, you can write and render your React components in your Astro page. But remember, Astro isn’t React, and you might be getting error messages when you totally know your React component should work. It’s not complicated to establish the Astro-React relationship, but you might not be used to doing these things…
One of Astro’s selling points has been that you can bring your own mix-and-match components… but I didn’t really get the power of that as a learner until just now, listening to Fred K. Schott interviewed on devtools.fm
© 2021 - 2024 Sarah Rainsberger. Except where otherwise noted, and/or quoting external sources, the content of this site is licensed under CC BY-NC-SA 4.0