diff options
author | 2023-08-18 07:31:52 -0700 | |
---|---|---|
committer | 2023-08-18 10:31:52 -0400 | |
commit | 5c190d06f1cec6a4ecd2a1fbfc77c498c91b9d2c (patch) | |
tree | f97b8bda8fb2433248e5c179b449ca1520eab15e /packages/integrations/react | |
parent | 821918bc0ccf8a706da2194456c625d55dee989c (diff) | |
download | astro-5c190d06f1cec6a4ecd2a1fbfc77c498c91b9d2c.tar.gz astro-5c190d06f1cec6a4ecd2a1fbfc77c498c91b9d2c.tar.zst astro-5c190d06f1cec6a4ecd2a1fbfc77c498c91b9d2c.zip |
[ci] release (#8096)create-astro@3.2.2astro@2.10.10@astrojs/vercel@3.8.2@astrojs/svelte@3.1.1@astrojs/solid-js@2.2.1@astrojs/react@2.3.0
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.md | 22 | ||||
-rw-r--r-- | packages/integrations/react/package.json | 2 |
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", |