We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5eabcca commit 18f7b14Copy full SHA for 18f7b14
inst/www/react-tools/react-tools.js
@@ -81,7 +81,7 @@ window.reactR = (function () {
81
type: type,
82
factory: function (el, width, height) {
83
var lastValue,
84
- instance = null,
+ instance = {},
85
renderValue = (function (value) {
86
if (actualOptions.renderOnResize) {
87
// value.tag might be a primitive string, in which
@@ -92,7 +92,7 @@ window.reactR = (function () {
92
}
93
lastValue = value;
94
95
- this.instance = ReactDOM.render(hydrate(components, value.tag), el);
+ this.instance.component = ReactDOM.render(hydrate(components, value.tag), el);
96
});
97
return {
98
instance: instance,
0 commit comments