1
0
mirror of https://github.com/fazo96/ipfs-boards synced 2025-01-10 12:24:20 +01:00
ipfs-boards/webapp/pages/status.jsx

17 lines
345 B
React
Raw Permalink Normal View History

2015-12-19 13:52:38 +01:00
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} />
}
})
}