Skip to content

Commit e3966f0

Browse files
author
Oskar Löfgren
committed
fix: add key to animated section list
To remove console warning about unique keys for list items. Using index in lack of a more appropriate key.
1 parent 761c4b8 commit e3966f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

playground/modules/wizard/animated/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const AnimatedSection: React.FC = () => {
1616
.fill(null)
1717
.map((_, index) => {
1818
return (
19-
<AnimatedStep previousStep={previousStep}>
19+
<AnimatedStep key={index} previousStep={previousStep}>
2020
<Step number={index + 1} withCallback={false}></Step>
2121
</AnimatedStep>
2222
);

0 commit comments

Comments
 (0)