felixrieseberg / felixrieseberg/React-Dropzone-Component
onDrop is fetching data only after page reload.
- Dominant language
- JavaScript
- Stars
- 999
- Forks
- 148
- PR merge metrics
- No merged PRs in 30d
Description
`` componentDidMount() {
const objThis = this;
fetch('/details')
.then((response) => response.json())
.then((findresponse) => {
console.log(findresponse.filename)
this.setState({
data: findresponse.filename,
})
})
}
render() {
const config = this.componentConfig;
const djsConfig = this.djsConfig;
// For a list of all possible events (there are many), see README.md!
const eventHandlers = {
drop: this.callbackArray,
addedfile: this.callback,
}
return (
Upload Instructions
- {this.state.data}
- Do not use all CAPS
- Do not use all CAPS
- Do not use all CAPS
- Do not use all CAPS
- Do not use all CAPS
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the component containing componentDidMount, the DropzoneComponent usage, and its drop and addedfile event handlers; consult README.md for the event API. Reproduce the upload flow and trace when /details is fetched and when state.data is rendered. Done means the fetched value updates after onDrop without requiring a page reload.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100