Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve nodes description in React integrations docs #8038

Merged
merged 4 commits into from May 3, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/docs/en/guides/integrations-guide/react.mdx
Expand Up @@ -152,7 +152,7 @@ import ReactComponent from './ReactComponent';

If you are using a library that *expects* more than one child element to be passed, for example so that it can slot certain elements in different places, you might find this to be a blocker.

You can set the experimental flag `experimentalReactChildren` to tell Astro to always pass children to React as React vnodes. There is some runtime cost to this, but it can help with compatibility.
You can set the experimental flag `experimentalReactChildren` to tell Astro to always pass children to React as React nodes. There is some runtime cost to this, but it can help with compatibility.
oscarvz marked this conversation as resolved.
Show resolved Hide resolved

You can enable this option in the configuration for the React integration:

Expand Down