felixrieseberg / React-Dropzone-Component

:camera: ReactJS Dropzone for File Uploads (using Dropzone.js)
MIT License
1k stars 153 forks source link

findDOMNode is deprecated in StrictMode. #217

Open subin-jm opened 4 years ago

subin-jm commented 4 years ago

I am getting this warning "Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of t which is inside StrictMode. Instead, add a ref directly to the element you want to reference"

my code is given below

"<div>
  <DropzoneComponent
            config={this.componentConfig}
            eventHandlers={eventHandlers}
            djsConfig={this.djsConfig}
          >
            <div className="AddFiles_Image">
              <div className="dz-default dz-message">
                <p>Drop files here to upload</p>
              </div>
            </div>
          </DropzoneComponent>
          <div className="AddFiles_Btn">
            <button>Done</button>
          </div>
        </div>"