
Astro with Fred K. Schott - JSJ 561
JavaScript Jabber
00:00
JavaScript Within an Astro Component?
Astro is a headless API. You can use any JS API and the SDK to fetch data from anywhere. The most common way that I use it or I have seen it used is to map over an array. And you can do other things such as concatenating variable and string values together to generate class names or attribute values using your curly braces. Very similar to view.
Transcript
Play full episode