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

168
Views
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
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!