so far I was trying to display a background image using css however, the image is not showing up on the screen.
this is what I did so far:
import React from 'react';
import './LoginScreen.css';
const LoginScreen = ()=>{
return (
<div className="container">
</div>
)
}
export default LoginScreen;
*,*::before,*::after{
box-sizing: border-box;
font-family:Arial, Helvetica, sans-serif;
}
.container {
background-image: url("../../Images/online_auction.jpg");
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/16.6.3/umd/react.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.6.3/umd/react-dom.production.min.js"></script>
and for my folder structure I have: Images -->online_auction.jpg and Screens -->LoginScreen --->LoginScreen.js + LoginSCreen.css
..public/Images/and use"/Images/online_auction.jpg"as url