This doesn't display an image, but still works as a button.
<button><img src={"./img/google.png"} /></button>
My folder setup is /user/img/google.png and /user/loginGoogle.jsx , so I don't think there is a problem with source
This doesn't display an image, but still works as a button.
<button><img src={"./img/google.png"} /></button>
My folder setup is /user/img/google.png and /user/loginGoogle.jsx , so I don't think there is a problem with source
import logo from './logo.png'; // Tell webpack this JS file uses this image
// Import result is the URL of your image return ;