The hook fn doesn't set any styles on either of the prop fns (`getRootProps()`/`getInputProps()`). ### Using inline styles ```jsx harmony import React, {useMemo} from 'react'; import {useDropzone} from 'react-dropzone'; const baseStyle = { flex: 1, display: 'flex', flexDirection: 'column', alignItems: 'center', padding: '20px', borderWidth: 2, borderRadius: 2, borderColor: '#eeeeee', borderStyle: 'dashed', backgroundColor: '#fafafa', color: '#bdbdbd', outline: 'none', transition: 'border .24s ease-in-out' }; const focusedStyle = { borderColor: '#2196f3' }; const acceptStyle = { borderColor: '#00e676' }; const rejectStyle = { borderColor: '#ff1744' }; function StyledDropzone(props) { const { getRootProps, getInputProps, isFocused, isDragAccept, isDragReject } = useDropzone({accept: {'image/*': []}}); const style = useMemo(() => ({ ...baseStyle, ...(isFocused ? focusedStyle : {}), ...(isDragAccept ? acceptStyle : {}), ...(isDragReject ? rejectStyle : {}) }), [ isFocused, isDragAccept, isDragReject ]); return (
Drag 'n' drop some files here, or click to select files
Drag 'n' drop some files here, or click to select files