Replies: 2 comments
-
I've tried referencing this line while creating this question, but then it seemed not to have worked. |
Beta Was this translation helpful? Give feedback.
-
Hey @avloss, the reason that Essentially when the Separator component (or more specifically the Primitive component) is initially mounted, In general, it's my understanding that components should be client components whenever user interactivity is needed or information about the client environment (such as using Here's some snippets of the code pieces with permalinks embedded that are weaved together. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to wrap my head around how to develop for Next.js 13+, and it's my understanding that "use client" should be avoided when possible, only reserving it for user interactions. I understand that still it might be used for animations, etc. But "Separator" element surely doesn't fit in a category where one would expect that JS would be needed to render it.
I'm still learning about this new paradigm, and perhaps an answer would be helpful to other too. Initial thought would be that it's just "bloated", but then there's probably a good reason for why it needs to run JS on a client to render a separator.
Beta Was this translation helpful? Give feedback.
All reactions