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 a3d358b commit e42f127Copy full SHA for e42f127
lib/utils.js
@@ -128,7 +128,7 @@ export const mergeViewStyle = (style, defaultStyle = {}) => {
128
* @param props
129
* @returns {JSX.Element|[]|*}
130
*/
131
-export const createElement = (Component, props) => {
+export const createElement = (Component, props = {}) => {
132
return Component != null ? (
133
React.isValidElement(Component) ? (
134
React.cloneElement(Component, props)
0 commit comments