Skip to content

Commit c6af99e

Browse files
committed
(fix) return string message correctly
Signed-off-by: Muthu Kumar <muthukumar@thefeathers.in>
1 parent 92ff346 commit c6af99e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const Stories: FC<{
6969

7070
const Component = compName && stories[compName];
7171

72-
if (compName) return Component ? h(Component) : h("Component not found");
72+
if (compName) return Component ? <Component /> : <>"Component not found"</>;
7373

7474
return (
7575
<div className={wrapper}>

0 commit comments

Comments
 (0)