0
Follow
0
View

how can I access an array inside an object? [duplicate]

huaxin445944 注册会员
2023-01-25 19:42

You only missing another items iteration:

const Footer = () => {
  return (
    
{/* category unique acts as key */} {footerNavigation.map(({ category, items }) => { return (

{category}

    {/* text unique should be a key */} {items.map(({ href, text }) => ( {text} ))}
); })}
); };

About the Author

Question Info

Publish Time
2023-01-25 19:42
Update Time
2023-01-25 19:42