Open anujshah108 opened 3 years ago
const FeedbackFileUpload = () => { return ( <FileUploaderDropzone> <FileUploaderIcon> <Publish /> </FileUploaderIcon> <FileUploaderTitle variant="subtitle2"> Drag and Drop Files </FileUploaderTitle> <FileUploaderBrowse variant="subtitle1">Browse Files</FileUploaderBrowse> </FileUploaderDropzone> ); };
I have this custom component that I insert into inputContent
<Dropzone // disabled={Boolean(response || loading)} key={dropzoneKey} onChangeStatus={handleChangeStatus} submitButtonDisabled={true} inputContent={<FeedbackFileUpload />} />
I get the error:
index.js:1 Warning: Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information. at label at O (http://localhost:3000/static/js/vendors~main.chunk.js:246033:15) at div
Any help?
I starting receiving that warning as well.
Same problem. Just add a unique key to each "inputContent" element. That will make the warning disappear.
I have this custom component that I insert into inputContent
I get the error:
index.js:1 Warning: Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information. at label at O (http://localhost:3000/static/js/vendors~main.chunk.js:246033:15) at div
Any help?