@astrojs/react
Advanced tools
Comparing version 4.1.2 to 4.1.3
{ | ||
"name": "@astrojs/react", | ||
"description": "Use React components within Astro", | ||
"version": "4.1.2", | ||
"version": "4.1.3", | ||
"type": "module", | ||
@@ -56,3 +56,3 @@ "types": "./dist/index.d.ts", | ||
"react-dom": "^18.3.1", | ||
"astro": "5.1.1", | ||
"astro": "5.1.5", | ||
"astro-scripts": "0.0.14" | ||
@@ -59,0 +59,0 @@ }, |
@@ -9,2 +9,3 @@ import opts from 'astro:react:opts'; | ||
const reactTypeof = Symbol.for('react.element'); | ||
const reactTransitionalTypeof = Symbol.for('react.transitional.element'); | ||
@@ -32,3 +33,6 @@ async function check(Component, props, children) { | ||
const vnode = Component(...args); | ||
if (vnode && vnode['$$typeof'] === reactTypeof) { | ||
if ( | ||
vnode && | ||
(vnode['$$typeof'] === reactTypeof || vnode['$$typeof'] === reactTransitionalTypeof) | ||
) { | ||
isReactComponent = true; | ||
@@ -35,0 +39,0 @@ } |
30550
710