【发布时间】:2021-09-27 15:58:36
【问题描述】:
我只想有一个 id = 0 的链接,而不是项目数组中其余元素的超链接。有人可以帮忙吗,谢谢:)
const Projects = () => (
<Section nopadding id="projects">
<SectionDivider />
<SectionTitle main>Projects</SectionTitle>
<GridContainer>
{projects.map(({ id, image, title, description, tags, source, visit }) => (
<BlogCard key={id}>
<Img src={image} />
<Link href="/campaigns">
<TitleContent>
<HeaderThree title>{title}</HeaderThree>
<Hr />
</TitleContent>
............
...........
);
【问题讨论】:
标签: javascript reactjs