You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
When I do this, it works
<Zoom
img = {this.state.imgcur}
zoomScale = {3}
height = {450}
width = {400}
transitionTime = {0.5}
/>
but when I change the image with this.setState ({imgcur: newImage}), it does not refresh
The text was updated successfully, but these errors were encountered:
I solved it by adding a value to the key
<Zoom key = {this.state.key}
img = {this.state.imgcur}
zoomScale = {3}
height = {450}
width = {400}
transitionTime = {0.5}
/>
Change the index and the new image, to update the 2 values
this.setState ({imgcur: newImage, key: index}),
Hello,
When I do this, it works
<Zoom
img = {this.state.imgcur}
zoomScale = {3}
height = {450}
width = {400}
transitionTime = {0.5}
/>
but when I change the image with this.setState ({imgcur: newImage}), it does not refresh
The text was updated successfully, but these errors were encountered: