We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7b7a99 commit e148613Copy full SHA for e148613
src/React.js
@@ -13,7 +13,7 @@ exports.getProps = getProps;
13
14
function getRefs(this_) {
15
return function(){
16
- return this_.refs;
+ return this_;
17
};
18
}
19
exports.getRefs = getRefs;
@@ -43,8 +43,7 @@ exports.getChildren = getChildren;
43
function readRefImpl (this_) {
44
return function(name) {
45
return function() {
46
- var refs = this_.refs || {};
47
- return refs[name];
+ return this_[name];
48
49
50
@@ -54,9 +53,7 @@ function writeRef(this_) {
54
53
55
return function(node) {
56
57
58
- refs[name] = node;
59
- this_.refs = refs;
+ this_[name] = node;
60
return {};
61
62
0 commit comments