Commit 7312c3e8 authored by Christian Poyatos Ohler's avatar Christian Poyatos Ohler Committed by Jendrik Guse

fix(Menu.tsx): each child should have unique key

parent 1366c62f
......@@ -13,8 +13,10 @@ interface MenuProps {
export const Menu: FC<MenuProps> = ({ items }) => (
<div className="menu">
{items.map(({ label }) => (
<div className="menu--item">{label}</div>
{items.map(({ label }, index) => (
<div key={index} className="menu--item">
{label}
</div>
))}
</div>
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment