react-progressed
v2.0.3
Published
React component and a custom hook for file upload inputs
Downloads
5
Readme
react-progressed
React hooks and components for file uploading
Install
npm install --save react-progressed
Usage
import * as React from 'react'
import Progressed from 'react-progressed'
const App = () => {
const onChange = (e) => {
console.log(e.target.files)
}
const onSubmit = (fileList) => {
console.log(fileList)
}
return (
<Progressed onSubmit={onSubmit} onChange={onChange} />
)
}
License
MIT © pfftdammitchris