Started moving to ES6, JSX
This commit is contained in:
parent
a896447db1
commit
82fa9f21a2
6 changed files with 88 additions and 69 deletions
16
wrappers/html.jsx
Normal file
16
wrappers/html.jsx
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
// Generated by CoffeeScript 1.10.0
|
||||
var React;
|
||||
|
||||
React = require('react');
|
||||
|
||||
module.exports = React.createClass({
|
||||
displayName: "HTMLWrapper",
|
||||
render: function() {
|
||||
var html;
|
||||
console.log(this.props);
|
||||
html = "<div>fix me</div>";
|
||||
return (
|
||||
<div dangerouslySetInnerHTML={{__html: html}}/>
|
||||
);
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue