react-curry
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -0,1 +1,3 @@ | ||
var _react = require('react'); | ||
var _react2 = _interopRequireDefault(_react); | ||
@@ -10,3 +12,2 @@ | ||
exports.default = function (ComponentOrElementName, preProps) { | ||
var merged = {}; | ||
@@ -13,0 +14,0 @@ return typeof ComponentOrElementName === 'string' ? function (props) { |
{ | ||
"name": "react-curry", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "react stateless component curry", | ||
@@ -5,0 +5,0 @@ "main": "./lib2/index.js", |
@@ -5,4 +5,3 @@ import React from 'react'; | ||
export default (ComponentOrElementName, preProps) => { | ||
const merged = { }; | ||
return (typeof ComponentOrElementName === 'string') | ||
@@ -9,0 +8,0 @@ ? (props) => React.createElement(ComponentOrElementName, ...merge(preProps, props)) |
44643
34