FolderUpload

    0

    0

    YusifHasanov

    Library: react

    import { Dropzone } from 'react-dropzone';
    import 'react-dropzone/dist/styles.css';
    
    const [selectedFiles, setSelectedFiles] = useState([]);
    
    const onDrop = (acceptedFiles) => {
      setSelectedFiles(acceptedFiles);
    }
    
    
    
    <Dropzone onDrop={onDrop}>
        {({getRootProps, getInputProps}) => (
            <div {...getRootProps()}>
                <input {...getInputProps()} />
                <p>Drag and drop some files here, or click to select files</p>
            </div>
        )}
    </Dropzone>
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.