react-checkbox-group
Advanced tools
Comparing version
{ | ||
"name": "react-checkbox-group", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"description": "Sensible checkbox groups manipulation for DOM.", | ||
@@ -5,0 +5,0 @@ "main": "react-checkbox-group.js", |
@@ -6,2 +6,4 @@ /** | ||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } | ||
var React = require('react'); | ||
@@ -26,5 +28,12 @@ | ||
render: function render() { | ||
var _props = this.props; | ||
var name = _props.name; | ||
var value = _props.value; | ||
var defaultValue = _props.defaultValue; | ||
var otherProps = _objectWithoutProperties(_props, ['name', 'value', 'defaultValue']); | ||
return React.createElement( | ||
'div', | ||
this.props, | ||
otherProps, | ||
this.props.children | ||
@@ -31,0 +40,0 @@ ); |
@@ -23,4 +23,5 @@ /** | ||
render: function() { | ||
let {name, value, defaultValue, ...otherProps} = this.props; | ||
return ( | ||
<div {...this.props}> | ||
<div {...otherProps}> | ||
{this.props.children} | ||
@@ -79,2 +80,2 @@ </div> | ||
} | ||
}); | ||
}); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
24919
13.76%15
15.38%138
6.15%