You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
filepizza/lib/components/DownloadButton.js

26 lines
420 B
JavaScript

import React from 'react'
export default class DownloadButton extends React.Component {
constructor() {
super()
this.onClick = this.onClick.bind(this)
}
onClick(e) {
this.props.onClick(e)
}
render() {
return <button
className="download-button"
onClick={this.onClick}>
Download
</button>
}
}
DownloadButton.propTypes = {
onClick: React.PropTypes.func.isRequired
}