jay3eb
Re-render FileUpload Component
I have a scenario where I have a select component with a few options, when a user selects an option from the select component I'm conditionally showing and updating the FileUpload component. IE. to use the circleCropper or not, dimensions of the image being cropped etc. However, when I change my selection I have no way of rerendering the FileUpload component in order for it to render with the updated dimensions, etc. from the selection they chose.
Is there a way to re-render a component or update its state?
12 replies