Skip to content

Commit e42f127

Browse files
committed
fix: create element default empty props
1 parent a3d358b commit e42f127

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export const mergeViewStyle = (style, defaultStyle = {}) => {
128128
* @param props
129129
* @returns {JSX.Element|[]|*}
130130
*/
131-
export const createElement = (Component, props) => {
131+
export const createElement = (Component, props = {}) => {
132132
return Component != null ? (
133133
React.isValidElement(Component) ? (
134134
React.cloneElement(Component, props)

0 commit comments

Comments
 (0)