withastro / roadmap

Ideas, suggestions, and formal RFC proposals for the Astro project.
316 stars 30 forks source link

Recursive components #58

Closed sgruenholz2 closed 2 years ago

sgruenholz2 commented 2 years ago

Summary

Links

sgruenholz2 commented 2 years ago

Updated with how other platforms handle recursion, and the limitations of the single file per component design pattern.

natemoo-re commented 2 years ago

This is great, excited to discuss it tomorrow!

@sgruenholz2 would you mind updating the "Fully rendered proposal" link to point to the following URL?

https://github.com/sgruenholz2/rfcs/blob/recursive-components-patch-1/active-rfcs/0000-recursive-components.md
matthewp commented 2 years ago

Vue does it by referring to itself by filename: https://v3.vuejs.org/api/sfc-script-setup.html#using-components

matthewp commented 2 years ago

We have reached consensus on this.