import React from "react"; import Dropzone from "react-dropzone"; const { Card, CardBody, FormGroup, Label, Input, Button } = require("reactstrap"); const initialState = { files: [], vus: 1, duration: "1m", }; export default class LoadFile extends React.Component { readonly state: any = initialState; constructor(props: any) { super(props); this.onDrop = this.onDrop.bind(this); this.onSubmit = this.onSubmit.bind(this); } onDrop(files: File[]): void { this.setState({ ...this.state, files, }); } onSubmit(event: Event): void { event.preventDefault(); } render(): any { return (

Welcome to Tsunami!

{({ getRootProps, getInputProps }) => (

Drag 'n' drop some files here, or click to select files

)}
 
 
); } }