Skip to content

Instantly share code, notes, and snippets.

@cgrinaldi
Last active November 21, 2015 17:57
Show Gist options
  • Save cgrinaldi/a677beb1f53c9bd65417 to your computer and use it in GitHub Desktop.
Save cgrinaldi/a677beb1f53c9bd65417 to your computer and use it in GitHub Desktop.
An example of transpiling JSX into JavaScript
var App = (
<Form>
<Row>
<Label />
<Input />
</Row>
</Form>
);
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