Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

140
Views
Cómo soluciono el error de tipo no detectado: no se pueden leer las propiedades de undefined (leyendo 'mapa') en reaccionar

Este código arroja el error mencionado anteriormente. También intenté desestructurar la matriz, pero muestra algún otro error, intenté todas las formas posibles de solucionarlo, pero fallé. Cualquier ayuda será apreciada.

 import React, { Component } from "react"; import Shop_Data_List from "./shopData"; import ShopPreview from "./shopPreview"; class Shop extends Component { constructor(props) { super(props); this.state = { collections: Shop_Data_List }; } render(){ const {collections} = this.state; return( <div> <h1>Shop Is Open</h1> <div> { collections.map(({id, title, items}) => ( <ShopPreview key={id} /> )) } </div> </div> ); } } const ShopPreview = ({title, items}) => { <div className="Wrapper"> <div className="title">Title</div> <div className="lreview"> {items.map((item) =>(<div key={item.id}>{item.name}</div>))} </div> </div> } export default ShopPreview;
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!