skip to Main Content

Javascript – Why am I getting undefined from my array props

import React from "react"; function ProjectItem({ name, about, technologies }) { console.log("before .map", technologies) const tech = technologies.map ((techItem) => { console.log("this is tech after .map: ",techItem) return <span>{techItem}</span> }) return ( <div className="project-item"> <h3>{name}</h3> <p>{about}</p> <div className="technologies"> {tech} {/*…

VIEW QUESTION
Back To Top
Search