mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
22 lines
502 B
Markdown
22 lines
502 B
Markdown
|
---
|
||
|
'@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.
|