⛄ Snowberb ⛄ – 12-28 Jul 18

What's better or cleaner? To conditionally set the Image source or to conditionally render the image
<div className="relative flex min-w-[250px] w-[250px] h-full rounded-lg overflow-hidden">
<Image
src={getBookieImageSrc(bonus.bookie.toLowerCase())}
layout="fill"
objectFit="cover"
alt=""
/>
</div>
<div className="relative flex min-w-[250px] w-[250px] h-full rounded-lg overflow-hidden">
<Image
src={getBookieImageSrc(bonus.bookie.toLowerCase())}
layout="fill"
objectFit="cover"
alt=""
/>
</div>
or
<div className="relative flex min-w-[250px] w-[250px] h-full rounded-lg overflow-hidden">
{getBookieImageSrc(bonus.bookie.toLowerCase())}
</div>
<div className="relative flex min-w-[250px] w-[250px] h-full rounded-lg overflow-hidden">
{getBookieImageSrc(bonus.bookie.toLowerCase())}
</div>
UU
Unknown User638d ago