Started moving to ES6, JSX

This commit is contained in:
Gianluca Esposito 2015-09-10 20:13:26 +02:00
parent a896447db1
commit 82fa9f21a2
6 changed files with 88 additions and 69 deletions

View file

@ -1,11 +0,0 @@
React = require 'react'
module.exports = React.createClass
displayName: "HTMLWrapper"
render: ->
#html = require "../" + @props.page.requirePath
console.log @props
html = "<div>fix me</div>"
<div dangerouslySetInnerHTML={{__html: html}}/>

16
wrappers/html.jsx Normal file
View 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}}/>
);
}
});