Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

170
Vistas
Using RichText in a map in React

Thank you so, so much for your time looking at this

I'm using React and Prismic I'm trying to apply RichText (https://prismic.io/docs/technologies/rendering-the-rich-text-and-title-field-reactjs) to render the text but do not work on map.

My guess is that I'm loosing some logic here but I can't understand what is This show the content without rendering:

{prismicDoc?.data?.contenido?.map(x => x?.text || null)}

This show me an error:

{RichText.render(prismicDoc?.data?.contenido?.map(x => x?.text || null))}

The error is TypeError: Cannot read properties of undefined (reading 'map')

Could you please let me know what I'm doing wrong?

Thanks Laura

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda