Skip to content

Instantly share code, notes, and snippets.

@rajikaimal
Last active June 11, 2016 04:05
Show Gist options
  • Save rajikaimal/3e2e0c206c45c6596ebf to your computer and use it in GitHub Desktop.
Save rajikaimal/3e2e0c206c45c6596ebf to your computer and use it in GitHub Desktop.
React components
var TableRow = React.createClass({displayName: 'TableRow',
render: function() {
return (
React.createElement('tr', {className: "tableRow"},
"Table row"
)
);
}
});
ReactDOM.render(
React.createElement(TableRow, null),
document.getElementById('content')
);
var TableRow = React.createClass({
render: function() {
return (
<tr> "Table row" </tr>
);
}
});
ReactDOM.render(
<TableRow />,
document.getElementById('content')
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment