cgrinaldi
11/21/2015 - 5:53 PM

An example of transpiling JSX into JavaScript

An example of transpiling JSX into JavaScript

var App = (
  React.createElement(Form, null, 
    React.createElement(Row, null, 
      React.createElement(Label, null),
      React.createElement(Input, null)
    )
  )
);
var App = (
  <Form>
    <Row>
      <Label />
      <Input />
    </Row>
  </Form>
);