I have this function in my spinner.js file:
import React from 'react';
import broomAndText from './ezgif.com-video-to-gif-3.gif';
import './spinner.css';
function myGif() {
return <html><body><div class="imgContainer"><img src={broomAndText} alt="broomAndText"/></div></body></html>
}
export default myGif;
I want to call this function from here:
} else {
myGif()
createCheckoutSession()
console.log("does not exist!")
}
});
when I call myGif() like this, it does not display onto screen. how do i do this?