A small React project built to practice map() and arrow functions by rendering multiple profile cards from a data array.
This project displays user cards dynamically using React components. Instead of creating each card manually, the app reads data from a separate file and uses .map() to render each card on the screen.
This project helped me understand how to build reusable UI components and connect data with the user interface.
- How to use
map()in React - How arrow functions work inside components
- How to pass data using props
- How to separate data from UI logic
- How to create reusable card components
- Basic project structure in React
- React
- Vite
- JavaScript
- Tailwind CSS
App.jsxhandles rendering the list of cardsdata.jsxstores the user data in an arraycard.jsxis the reusable card component
- User data is stored in an array inside
data.jsx App.jsximports that datamap()is used to loop through the array- Each item is passed as props to the
Cardcomponent - The
Cardcomponent displays the user details on the screen
npm install
npm run dev