summaryrefslogtreecommitdiff
path: root/packages/integrations/react/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/integrations/react/server.js')
-rw-r--r--packages/integrations/react/server.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/integrations/react/server.js b/packages/integrations/react/server.js
index 9c3c309cc..50d6bd94b 100644
--- a/packages/integrations/react/server.js
+++ b/packages/integrations/react/server.js
@@ -6,6 +6,7 @@ import StaticHtml from './static-html.js';
const slotName = (str) => str.trim().replace(/[-_]([a-z])/g, (_, w) => w.toUpperCase());
const reactTypeof = Symbol.for('react.element');
+const reactTransitionalTypeof = Symbol.for('react.transitional.element');
async function check(Component, props, children) {
// Note: there are packages that do some unholy things to create "components".
@@ -28,7 +29,10 @@ async function check(Component, props, children) {
function Tester(...args) {
try {
const vnode = Component(...args);
- if (vnode && vnode['$$typeof'] === reactTypeof) {
+ if (
+ vnode &&
+ (vnode['$$typeof'] === reactTypeof || vnode['$$typeof'] === reactTransitionalTypeof)
+ ) {
isReactComponent = true;
}
} catch {}