Responsive Job hosting blog using React JS

Solution retrospective
Feedback welcome Suggestions are also welcomed
Please log in to post a comment
Log in with GitHubCommunity feedback
- @mseidel819
It looks like every listing has the
new
andfeatured
tags on them. Try creating a conditional for those tags so that it only displays if the json data marks those listings as "new" and "featured". Something like this:<div className='job-item-details-header'> <span><h4>{item.company}</h4></span> {item.new && (<span>New!</span>)} {item.featured && (<span>Featured</span>)} </div>
What I've added is a short-circuit conditional that will only render each of those
span
elements if the corresponding value is true. You can also add this to the green border on the left of each job card. I believe it only shows up on a job if it's featured.
Join 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