Skip to content

Commit 18f7b14

Browse files
attach to instance component instead of instance
1 parent 5eabcca commit 18f7b14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inst/www/react-tools/react-tools.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ window.reactR = (function () {
8181
type: type,
8282
factory: function (el, width, height) {
8383
var lastValue,
84-
instance = null,
84+
instance = {},
8585
renderValue = (function (value) {
8686
if (actualOptions.renderOnResize) {
8787
// value.tag might be a primitive string, in which
@@ -92,7 +92,7 @@ window.reactR = (function () {
9292
}
9393
lastValue = value;
9494
}
95-
this.instance = ReactDOM.render(hydrate(components, value.tag), el);
95+
this.instance.component = ReactDOM.render(hydrate(components, value.tag), el);
9696
});
9797
return {
9898
instance: instance,

0 commit comments

Comments
 (0)