mirror of
https://github.com/fazo96/ipfs-boards
synced 2025-01-25 14:54:19 +01:00
14 lines
336 B
React
14 lines
336 B
React
|
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()
|
||
|
}
|
||
|
})
|