79122144

Date: 2024-10-24 13:29:09
Score: 0.5
Natty:
Report link

You need to use conditional (ternary) operators to render it properly

{
  peoplePosts.map((post) => (
    <div key={post.id}>
      <h2>{post.title}</h2>
      <p>{post.content}</p>
      {post.featuredImage ? (
        <p>Yay</p>
      ) : (
        <p>Ouch</p>
      )}
    </div>
  ))
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Pavlo Sobchuk