gatsby-starter-blog-forestry/wrappers/html.cjsx
2015-06-11 16:41:30 -07:00

11 lines
262 B
CoffeeScript

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}}/>