Hey i am learning React and i am creating a React application where in one of my components i am importing one of my images from my imagefolder.
import Image from '../images/image.jpg';
I would like to use this image as a background by using a tailwind className
export const Gallery = () => {
return (
<div className="bg-[url('{Image}')]"></div>
)
}
i tried it this way but the image isnt rendering and i get nothing back.
Did i do something wrong here? Thanks in advance!!