Post
The problem you mentioned about knowing how it'll be used is a problem of the docs, not a problem of the syntax. Slots don't tell you how they'll be used any better than component props do, since all you see is a name and some magic syntax. Even a simple JSDoc comment over the prop definition works.
Its not magic if its expected to work and a standard feature. Anywho, i argue props' ambiguity is a detriment. Too much relies on runtime checking
0 reposts2 likes
No replies yet.