You can wrap the whole app into the dropzone. This will make the whole app a Dropzone target.
```
class FullScreen extends React.Component {
constructor() {
super()
this.state = {
accept: '',
files: [],
dropzoneActive: false
}
}
onDragEnter() {
this.setState({
dropzoneActive: true
});
}
onDragLeave() {
this.setState({
dropzoneActive: false
});
}
onDrop(files) {
this.setState({
files,
dropzoneActive: false
});
}
applyMimeTypes(event) {
this.setState({
accept: event.target.value
});
}
render() {
const { accept, files, dropzoneActive } = this.state;
const overlayStyle = {
position: 'absolute',
top: 0,
right: 0,
bottom: 0,
left: 0,
padding: '2.5em 0',
background: 'rgba(0,0,0,0.5)',
textAlign: 'center',
color: '#fff'
};
return (
{ dropzoneActive && Drop files...
}
);
}
}
```