How to detect when a image is loaded, that is provided via props, and change state in React? How to detect when a image is loaded, that is provided via props, and change state in React? reactjs reactjs