From 65c258a7b7cb3879b232b1f94fd5c457fc7fd4e7 Mon Sep 17 00:00:00 2001
From: remixz
Date: Tue, 13 May 2014 22:07:02 -0700
Subject: [PATCH 1/2] Add harmony transform support in browser (Fixes GH-1420)
I implemented this by checking for `type="text/jsx;harmony"`, since this
has a bit of a cleaner implementation rather than parsing a JSON object
out of a data attribute. If in the future there are other options to
pass, it would make sense to move to a system like that.
Along with adding support, there is also a new example added that's
the basic-jsx example with Harmony syntax.
---
examples/basic-jsx-harmony/index.html | 51 +++++++++++++++++++++++++++
vendor/browser-transforms.js | 25 ++++++++-----
2 files changed, 67 insertions(+), 9 deletions(-)
create mode 100644 examples/basic-jsx-harmony/index.html
diff --git a/examples/basic-jsx-harmony/index.html b/examples/basic-jsx-harmony/index.html
new file mode 100644
index 000000000000..e07a028bb8a4
--- /dev/null
+++ b/examples/basic-jsx-harmony/index.html
@@ -0,0 +1,51 @@
+
+
+
+
+ Basic Example with JSX with Harmony
+
+
+
+
Basic Example with JSX with Harmony
+
+
+ To install React, follow the instructions on
+ GitHub.
+
+
+ If you can see this, React is not working right.
+ If you checked out the source from GitHub make sure to run grunt.
+
+
+
Example Details
+
This is written with JSX with Harmony (ES6) syntax and transformed in the browser.