- Cannot read properties of undefined (reading 'map') ** Why it happens:** You’re trying to .map() over an array — but the array is either:
undefined at the time of rendering
Not properly initialized
`{socialMedia?.map((item, index) => (
))}
// OR
{(socialMedia || []).map((item, index) => (
))}
`
Top comments (0)