mirror of
https://github.com/fazo96/ipfs-boards
synced 2025-01-10 12:24:20 +01:00
14 lines
336 B
JavaScript
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()
|
|
}
|
|
})
|