My custom Gutenberg block is built using React JSX, allowing users to input two hero images - one for Desktop and one for Mobile. Currently, if a user does not upload a mobile image, it displays a blank space. I am looking for a way to have the desktop image render when no mobile image is provided. I have included the code reference below, can anyone assist me in implementing this in React JSX?
Below is my save method:
<img className="header-img header-img-d" src={ imgURL } />
<img className="header-img header-img-m" src={ mobileImgURL }/>