File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ window.reactR = (function () {
8181 type : type ,
8282 factory : function ( el , width , height ) {
8383 var lastValue ,
84+ instance = null ,
8485 renderValue = ( function ( value ) {
8586 if ( actualOptions . renderOnResize ) {
8687 // value.tag might be a primitive string, in which
@@ -91,9 +92,10 @@ window.reactR = (function () {
9192 }
9293 lastValue = value ;
9394 }
94- ReactDOM . render ( hydrate ( components , value . tag ) , el ) ;
95+ this . instance = ReactDOM . render ( hydrate ( components , value . tag ) , el ) ;
9596 } ) ;
9697 return {
98+ instance : instance ,
9799 renderValue : renderValue ,
98100 resize : function ( newWidth , newHeight ) {
99101 if ( actualOptions . renderOnResize ) {
@@ -117,4 +119,4 @@ window.reactR = (function () {
117119 isTag : isTag
118120 }
119121 } ;
120- } ) ( )
122+ } ) ( )
You can’t perform that action at this time.
0 commit comments