#Why is this map in astro template throwing an error?

2 messages · Page 1 of 1 (latest)

stone forge
#

Assuming the value about is a string, why is this:

{about.split(/\n{2,}/g).map((text) => <p>{text}</p>)}

throwing an error?

upper driftBOT
#

Hi @stone forge. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: