We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 507e248 commit 6652007Copy full SHA for 6652007
src/parser/parseReactElement.js
@@ -71,7 +71,9 @@ const getReactElementDisplayName = (element: ReactElement<*>): string => {
71
case isSuspense(element):
72
return 'Suspense';
73
default:
74
- return element;
+ // this is "unknown" case and will most likely result in `[object Object]`
75
+ // it's fine though as we can't display anything meaningful anyway here
76
+ return String(element);
77
}
78
};
79
0 commit comments