We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0d54027 + 53f52e1 commit cbe6f58Copy full SHA for cbe6f58
1 file changed
src/React/DOM/Props.js
@@ -14,13 +14,15 @@ exports.unsafeMkProps = function(key) {
14
exports.unsafeUnfoldProps = function(key) {
15
return function(value) {
16
var result = {};
17
+ var props = {};
18
+ props[key] = result;
19
20
for (var subprop in value) {
21
if (value.hasOwnProperty(subprop)) {
- result[key + '-' + subprop] = value[subprop];
22
+ result[subprop] = value[subprop];
23
}
24
25
- return result;
26
+ return props;
27
};
28
0 commit comments