This component will fetch the url prop that’s passed in when the modal opens in a fetch call placed in componentDidMount. This happens because componentDidMount is called every time the visible property of the modal is set to true: it’s basically reloading the component when the modal is shown.