1.0.0 • Published 7 years ago
r-file-browser v1.0.0
r-file-browser
A react component which gives your custom component or control capability to open up and select files from you desktop
How to
Install
npm install r-file-browser --save
Use
import { FileBrowser } from 'r-file-browser'
export class MyCustomPage extends React.Component {
onFileSelect(files) {
console.log('process files')
}
render() {
return <div>
<FileBrowser
onSelect={this.onFileSelect.bind(this)}>
<Button>Browse Files</Button>
</FileBrowser>
<div>
}
}
1.0.0
7 years ago