@astrojs/react@2.3.0
版本发布时间: 2023-08-18 22:34:45
withastro/astro最新发布版本:astro@4.16.16(2024-11-27 22:22:39)
Minor Changes
-
#8082
16a3fdf93
Thanks @matthewp! - Optionally parse React slots as React children.This adds a new configuration option for the React integration
experimentalReactChildren
: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.