1
0
mirror of https://github.com/fazo96/ipfs-boards synced 2025-01-10 12:24:20 +01:00
ipfs-boards/webapp/components/markdown.jsx
2015-11-20 20:21:54 +01:00

14 lines
336 B
JavaScript

var React = require('react')
var MarkdownLib = require('react-markdown')
module.exports = React.createClass({
renderIfApplicable: function(){
if(this.props.source)
return <MarkdownLib source={this.props.source} skipHtml={true} />
return <p>...</p>
},
render: function(){
return this.renderIfApplicable()
}
})