Last active
November 21, 2015 17:57
-
-
Save cgrinaldi/a677beb1f53c9bd65417 to your computer and use it in GitHub Desktop.
An example of transpiling JSX into JavaScript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var App = ( | |
<Form> | |
<Row> | |
<Label /> | |
<Input /> | |
</Row> | |
</Form> | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var App = ( | |
React.createElement(Form, null, | |
React.createElement(Row, null, | |
React.createElement(Label, null), | |
React.createElement(Input, null) | |
) | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment