score:0

function Posts({ posts }) {
  return (
    <ul>
      {posts.map((post) => (
        <li key={post.id}>
          <Link href={`/blog/${encodeURIComponent(post.slug)}`}>
            <a>{post.title}</a>
          </Link>
        </li>
      ))}
    </ul>
  )
}

score:0

{myArray.map((item) => (
 <NextLink href={`/something/${item.slug}`} passHref>
     <a href={`/something/${item.slug}`}>
         Dynamic link for {item.id}
      </a>
</NextLink>
))}

score:0

 <NextLink href={`/something/${item.slug}`} passHref>
     <a href={`/something/${item.slug}`} rel="noopener">
         Dynamic link for {item.id}
      </a>
</NextLink>
))}

score:1

<Link href={"/browse/" + e.name} key={e.name} passHref={true}>
    <a>
        <Card
            key={index}
            name={e.name}
            description={e.description}
            price={e.price}
            img={e.img}
        />
    </a>
</Link>

Related Query

More Query from same tag