-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not render preview and submit button on React StrictMode #200
Comments
I am having the same problem. |
Same |
after spending a couple of hours. all you need to update your state while uploading is running. ex:: const [isUpdatePreview, setIsUpdatePreview] = useState(false) <Dropzone now you need to update your state to tell react it does update the virtual DOM
it will fix your Issue |
well, this works good |
Hey @aliMurtaja, Your answer work for me as well. Just one thing, I am not able to remove the dropzone label after uploading files. |
@aliMurtaja thank you so much, it worked well ! |
As mentioned in the title, it does not render preview and submit button when i run the code on React.StrictMode
The text was updated successfully, but these errors were encountered: