Eric Burel @ericburel.tech · Feb 22

And I could render my first component! I noticed the layout wouldn't render two children if I move the "PageTemplate" at the same level as the "main" tag, but gave no errors Like a good photographer, I need to study how composition works in Astro

0 likes 1 replies

?

Replies

Eric Burel · Feb 22

Now similarly to what happens with React Server Components, the game is to move interactive components "'to the leaves " or "down the tree". Astro components are rendered server-side with no client JS, and in our case at build-time, so we try to use as many of them as possible