Skip to content

Commit 70295a1

Browse files
committed
Merge branch 'input-binding' of github.com:react-R/reactR into input-binding
2 parents 259bc32 + c750110 commit 70295a1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

srcjs/widget.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ export function reactWidget(name, type, components, options) {
9191
}
9292
lastValue = value;
9393
}
94+
// with functional stateless components this will be null
95+
// see https://reactjs.org/docs/react-dom.html#render for more details
9496
this.instance.component = ReactDOM.render(hydrate(components, value.tag), el);
9597
});
9698
return {

0 commit comments

Comments
 (0)