有人可以告诉我是什么导致了此错误,以及如何解决该错误? 我已经尝试过更改活动关键字,但仍然收到相同的警告。 不确定是样式组件还是属性存在问题。 向下是错误和代码。
26行-返回的div, 27-,...
代码块
return (
<div>
<div className="App">
<div className="portfolio__labels">
<a
href="/#"
active={filter === "all"}
onClick={() => setFilter("all")}
>
All
</a>
<a
href="/#"
active={filter === "frontend"}
onClick={() => setFilter("frontend")}
>
Frontend
</a>
<a
href="/#"
active={filter === "mobile"}
onClick={() => setFilter("mobile")}
>
Mobile
</a>
<a
href="/#"
active={filter === "ux-ui"}
onClick={() => setFilter("ux-ui")}
>
UX/UI
</a>
<a
href="/#"
active={filter === "others"}
onClick={() => setFilter("others")}
>
Others
</a>
</div>
<div className="portfolio__container">
{projects.map((item, key) =>
item.filtered === true ? (
<ProfileCard
key={key}
name={item.name}
title={item.title}
image={item.image}
className="border-box"
exerpt={item.exerpt}
git={item.git}
url={item.url}
category={item.category}
click="Push"
sans-serif
mb0-l
mb3
flex-none
w5
mr3
/>
) : (
""
)
)}
</div>
</div>
</div>