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 26d318d commit d4ed429Copy full SHA for d4ed429
src/utils/compose.js
@@ -1,7 +1,7 @@
1
import React from 'react'
2
import renderProps from './renderProps'
3
4
-const isElement = element => element.type === 'function'
+const isElement = element => typeof element.type === 'function'
5
6
const compose = (...elements) => {
7
return composedProps => {
0 commit comments