Skip to content

Commit beb0c56

Browse files
authored
Merge pull request #19 from streamich/allow-exotic-components
fix: 🐛 remove legacy component as function check
2 parents eed9507 + 69e0c42 commit beb0c56

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/render.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,6 @@ const render = (props, data, ...more) => {
3333
if (isFn(children)) return children(data, ...more);
3434

3535
if (comp) {
36-
if (process.env.NODE_ENV !== 'production') {
37-
if (!isFn(comp)) {
38-
throw new TypeError(
39-
'Universal children definition expected "comp" or "component" prop ' +
40-
`to be of a React component type, received typeof "${typeof comp}".`
41-
);
42-
}
43-
}
44-
4536
return h(comp, data);
4637
}
4738

0 commit comments

Comments
 (0)