Can any react-aria components be rendered server-side? #7765
Unanswered
developerdizzle
asked this question in
Q&A
Replies: 1 comment 2 replies
-
"React Server Components" and "Server Side Rendering" are two different things. All components are server side rendered by react. React Server Components only run on the server. Other components run both on the server and the client. None of our components are React Server Components - they always run on the client - but all components can be server side rendered to HTML. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Forgive me if this question has already been asked; I searched but didn't find a definitive answer.
It's my understanding that SSR components cannot use
createContext
https://nextjs.org/docs/messages/context-in-server-componentBut looking at https://github.com/adobe/react-spectrum/tree/main/packages/react-aria-components/src, context is used in basically every component.
For example, I might expect a component like Header, with no events or state, to be SSR-able.
On the other hand, this SSR documentation exists, which implies there is some degree of SSR functionality.
Can any of React Aria's components be rendered server-side?
Beta Was this translation helpful? Give feedback.
All reactions