What is this 'use client' usage? #67500
Unanswered
michaelgruner
asked this question in
Help
Replies: 1 comment
-
Hello, man. About be component, in a way, it can be considered a component, as part of the application. Normal to be called by a server-component. It would be strange if it were the other way around, a client calling a server, which would be an inversion. In this case, I believe it is a client due to the way Material UI works and the font is loaded on the client. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I think I understand client/server components and server actions. Then I stumbled across this:
https://mui.com/material-ui/integrations/nextjs/#theming
src/theme.js
What is that? It is not a component but it is declared as 'use client' and can be imported and used from a server component.
What is going on here? Is this documented?
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions