summaryrefslogtreecommitdiff
path: root/packages/integrations/react
diff options
context:
space:
mode:
Diffstat (limited to 'packages/integrations/react')
-rw-r--r--packages/integrations/react/CHANGELOG.md22
-rw-r--r--packages/integrations/react/package.json2
2 files changed, 23 insertions, 1 deletions
diff --git a/packages/integrations/react/CHANGELOG.md b/packages/integrations/react/CHANGELOG.md
index c6ccf491c..9471ae8cb 100644
--- a/packages/integrations/react/CHANGELOG.md
+++ b/packages/integrations/react/CHANGELOG.md
@@ -1,5 +1,27 @@
# @astrojs/react
+## 2.3.0
+
+### Minor Changes
+
+- [#8082](https://github.com/withastro/astro/pull/8082) [`16a3fdf93`](https://github.com/withastro/astro/commit/16a3fdf93165a1a0404c1db0973871345b2c591b) Thanks [@matthewp](https://github.com/matthewp)! - 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.
+
## 2.2.2
### Patch Changes
diff --git a/packages/integrations/react/package.json b/packages/integrations/react/package.json
index e238e21b9..23b19447e 100644
--- a/packages/integrations/react/package.json
+++ b/packages/integrations/react/package.json
@@ -1,7 +1,7 @@
{
"name": "@astrojs/react",
"description": "Use React components within Astro",
- "version": "2.2.2",
+ "version": "2.3.0",
"type": "module",
"types": "./dist/index.d.ts",
"author": "withastro",