Skip to content

Instantly share code, notes, and snippets.

@hoorayimhelping
Created October 4, 2015 01:27
Show Gist options
  • Save hoorayimhelping/02d0c48176608e56d965 to your computer and use it in GitHub Desktop.
Save hoorayimhelping/02d0c48176608e56d965 to your computer and use it in GitHub Desktop.
diff --git a/js/app.js b/js/app.js
index 91742b4..95b4f7f 100644
--- a/js/app.js
+++ b/js/app.js
@@ -93,6 +93,8 @@ window.addEventListener('resize', function(event) {
draw();
}, false);
+window.react = react;
+
},{"../rendering/canvas":1,"react":157}],3:[function(require,module,exports){
/**
* Copyright 2013-2015, Facebook, Inc.
diff --git a/js/views/main.js b/js/views/main.js
index bcdaa95..5dfaea9 100644
--- a/js/views/main.js
+++ b/js/views/main.js
@@ -26,3 +26,5 @@ window.addEventListener('resize', function(event) {
renderer.scaleCanvas($container, getWidth(), getHeight());
draw();
}, false);
+
+window.react = react;
diff --git a/js/views/main.jsx b/js/views/main.jsx
index bcdaa95..5dfaea9 100644
--- a/js/views/main.jsx
+++ b/js/views/main.jsx
@@ -26,3 +26,5 @@ window.addEventListener('resize', function(event) {
renderer.scaleCanvas($container, getWidth(), getHeight());
draw();
}, false);
+
+window.react = react;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment