diff options
Diffstat (limited to 'packages/integrations/react/README.md')
-rw-r--r-- | packages/integrations/react/README.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/integrations/react/README.md b/packages/integrations/react/README.md index 7504490e0..8009972b3 100644 --- a/packages/integrations/react/README.md +++ b/packages/integrations/react/README.md @@ -80,9 +80,9 @@ import ReactComponent from './ReactComponent'; </ReactComponent> ``` -If you are using a library that *expects* more than one child element element to be passed, for example so that it can slot certain elements in different places, you might find this to be a blocker. +If you are using a library that _expects_ more than one child element element to be passed, for example so that it can slot certain elements in different places, you might find this to be a blocker. -You can set the experimental flag `experimentalReactChildren` to tell Astro to always pass children to React as React vnodes. There is some runtime cost to this, but it can help with compatibility. +You can set the experimental flag `experimentalReactChildren` to tell Astro to always pass children to React as React vnodes. There is some runtime cost to this, but it can help with compatibility. You can enable this option in the configuration for the React integration: @@ -96,8 +96,8 @@ export default defineConfig({ integrations: [ react({ experimentalReactChildren: true, - }) - ], + }), + ], }); ``` |