Design comparison
SolutionDesign
Solution retrospective
How would you refactor this to make to make it into a conditional statement:
<img
className="block md:hidden rounded-tl rounded-tr md:rounded-"
src={mobile}
></img>
<img
className="hidden md:block rounded-tl rounded-bl md:rounded-"
src={desktop}
></img>
Community feedback
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord