diff options
Diffstat (limited to '.changeset/yellow-snakes-jam.md')
-rw-r--r-- | .changeset/yellow-snakes-jam.md | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/.changeset/yellow-snakes-jam.md b/.changeset/yellow-snakes-jam.md new file mode 100644 index 000000000..87c4d1da7 --- /dev/null +++ b/.changeset/yellow-snakes-jam.md @@ -0,0 +1,21 @@ +--- +'@astrojs/react': minor +--- + +Optionally parse React slots as React children. + +This adds a new configuration option for the React integration `experimentalReactChildren`: + +```js +export default { + integrations: [ + react({ + experimentalReactChildren: true, + }) + ] +} +``` + +With this enabled, children passed to React from Astro components via the default slot are parsed as React components. + +This enables better compatibility with certain React components which manipulate their children. |