Last active
June 11, 2016 04:05
-
-
Save rajikaimal/3e2e0c206c45c6596ebf to your computer and use it in GitHub Desktop.
React components
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 TableRow = React.createClass({displayName: 'TableRow', | |
render: function() { | |
return ( | |
React.createElement('tr', {className: "tableRow"}, | |
"Table row" | |
) | |
); | |
} | |
}); | |
ReactDOM.render( | |
React.createElement(TableRow, null), | |
document.getElementById('content') | |
); |
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 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