summaryrefslogtreecommitdiff
path: root/packages/integrations/react
diff options
context:
space:
mode:
authorGravatar Houston (Bot) <108291165+astrobot-houston@users.noreply.github.com> 2023-08-18 07:31:52 -0700
committerGravatar GitHub <noreply@github.com> 2023-08-18 10:31:52 -0400
commit5c190d06f1cec6a4ecd2a1fbfc77c498c91b9d2c (patch)
treef97b8bda8fb2433248e5c179b449ca1520eab15e /packages/integrations/react
parent821918bc0ccf8a706da2194456c625d55dee989c (diff)
downloadastro-5c190d06f1cec6a4ecd2a1fbfc77c498c91b9d2c.tar.gz
astro-5c190d06f1cec6a4ecd2a1fbfc77c498c91b9d2c.tar.zst
astro-5c190d06f1cec6a4ecd2a1fbfc77c498c91b9d2c.zip
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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",