Closed FlandiaYingman closed 2 years ago
I'm sure it's not the only way, but it's the easiest way I could think of. Don't forget the {showPhoto && <Image ... /> }
conditional rendering bit as well. (Though it's better to use a ternary operator than what I did here.)
@benmneb Thanks!
Hi! I noticed that the Demo (https://mui-image.surge.sh/) uses the following to change to a new image
I am wondering whether it is the only way to achieve this, because it doesn't look very elegant...