Skip to content

Commit 61b32cf

Browse files
authored
Merge pull request #4466 from CodeHarborHub/ajay-dhangar-patch-13
Fixed bug: Do not use Array index in keys
2 parents 80293ab + d104569 commit 61b32cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Lesson/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const Lesson: React.FC<LessonProps> = ({ title, tags, description }) => {
2121
<h2 className="lesson-title">{title}</h2> {/* Title of the lesson */}
2222
<p className="lesson-description">{description}</p> {/* Description or content of the lesson */}
2323
<div className="lesson-tags"> {/* Container for tags */}
24-
{tags.map((tag, index) => (
25-
<span key={index} className="lesson-tag">{tag}</span>
24+
{tags.map((tag) => (
25+
<span key={tag} className="lesson-tag">{tag}</span>
2626
))
2727
}
2828
</div>

0 commit comments

Comments
 (0)