mirror of
https://github.com/fazo96/ipfs-boards
synced 2025-01-10 12:24:20 +01:00
17 lines
345 B
React
17 lines
345 B
React
|
var React = require('react')
|
||
|
var GetIPFS = require('getipfs.jsx')
|
||
|
|
||
|
module.exports = function (boardsAPI) {
|
||
|
return React.createClass({
|
||
|
getInitialState () {
|
||
|
return { }
|
||
|
},
|
||
|
componentDidMount () {
|
||
|
boardsAPI.use(api => this.setState({ api }))
|
||
|
},
|
||
|
render () {
|
||
|
return <GetIPFS api={this.state.api} />
|
||
|
}
|
||
|
})
|
||
|
}
|