I'm trying to build my First reactjs site, protfolio project, Right now I'm at the skills section. I made a Skill file of an array of objects of my skills so that I could use map funtion in my Skills.jsx components and in fututre I could just add another skill object and map() will render it. Once done with the the array of objects my site was rendering but all of a sudden I got this error!!
//My Skills.jsx: Once I render this I will use props for the map function.
import React from "react";
function Skills() {
return (
<>
<section className="skills">
<div className="card">
<div className="content">
<img src="./src/assets/html5.svg" alt="htmlIcon" />
<p>HTML</p>
</div>
</div>
</section>
</>
);
}
export default Skills;
//My Skills JSON: (I have 10 objects in it.)
const skills = [
{
id: 1,
icon: "./src/assets/html5.svg",
iconName: "HTML",
},
];
export default skills;
I want to render the Skill JSON obect in my Skills.jsx component using map function!!
Figured out the Map function, and I have successfully implemented it now all that is left is styling it!!