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.
2 parents 12477ff + df32610 commit 11d61ceCopy full SHA for 11d61ce
ReactJS.php
@@ -58,7 +58,7 @@ function __construct($libsrc, $appsrc) {
58
$react = array();
59
// stubs, react
60
$react[] = "var console = {warn: function(){}, error: print}";
61
- $react[] = "var global = {}";
+ $react[] = "var global = global || this, self = self || this, window = window || this";
62
$react[] = $libsrc;
63
$react[] = "var React = global.React";
64
// app's components
0 commit comments