Skip to content

Commit

Permalink
added key
Browse files Browse the repository at this point in the history
  • Loading branch information
Godson Thomas authored and Godson Thomas committed Jun 25, 2023
1 parent e925d85 commit d29f800
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/TopicsList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ export default async function TopicsList() {
return (
<>
{topics.map((t) => (
<div className="p-4 border border-slate-300 my-3 flex justify-between gap-5 items-start">
<div
key={t._id}
className="p-4 border border-slate-300 my-3 flex justify-between gap-5 items-start"
>
<div>
<h2 className="font-bold text-2xl">{t.title}</h2>
<div>{t.description}</div>
Expand Down

0 comments on commit d29f800

Please sign in to comment.