React Server Components (RSC)
RSC support in gluestack-ui
gluestack-ui components are compatible with Server Components. You can use gluestack-ui components inside a server component.
You can install
Next.js app router + gluestack-ui application for more details on how to use gluestack-ui components inside a server component.
Note: We have added a new API for the components — you can avoid the use of "." when using a component. For example, you can now use <ButtonText>
instead of <Button.Text>
. This is to accommodate new changes to the RSC, which does not support "." as per this
issue. You can still use the older format, but if you want to use RSC, we recommend skipping the "."