This project is part of the GoIT React curriculum. It focuses on building reusable React components, working with props, component composition, and basic project structure using Vite.
- Create a repository named goit-react-hw-01
- Build the project using Vite
- Deploy the project and provide a Vercel live link
- No errors or warnings in the browser console
- Use default export for all components
- All components must be rendered inside the
<App>component - All props must be passed correctly
- Code must be clean, readable, and formatted with Prettier
- Styles must be implemented using CSS Modules
- React — Component-based UI
- Vite — Fast project setup and build tool
- JavaScript (ES6+)
- CSS Modules — Scoped component styles
- Prettier — Code formatting
src/ ├── components/ │ ├── Profile/ │ │ ├── Profile.jsx │ │ └── Profile.module.css │ ├── FriendList/ │ │ ├── FriendList.jsx │ │ └── FriendList.module.css │ ├── FriendListItem/ │ │ ├── FriendListItem.jsx │ │ └── FriendListItem.module.css │ ├── TransactionHistory/ │ │ ├── TransactionHistory.jsx │ │ └── TransactionHistory.module.css ├── App.jsx ├── userData.json ├── friends.json └── transactions.json
The Profile component displays user information using props:
name— user nametag— social tag without @location— city and countryimage— avatar URLstats— followers, views, likes
User data is stored in userData.json and imported into App.jsx.
The FriendList component renders a list of friends based on an array of objects. Each friend is displayed using the FriendListItem component.
avatar— avatar imagename— friend nameisOnline— online status (true / false)
Friend data is stored in friends.json.
Online status is styled conditionally using CSS classes.
The TransactionHistory component displays banking transactions in a table.
id— unique transaction identifiertype— transaction typeamount— transaction amountcurrency— currency code
Transaction data is stored in transactions.json and rendered dynamically.
- The project is deployed using Vercel
- Two links are provided for submission:
- GitHub repository (source code): https://kutluhangil.github.io/goit-react-hw-01/
- Vercel live project link: https://goit-react-hw-01-rose-one.vercel.app
This project demonstrates core React fundamentals such as component composition, props usage, reusable UI blocks, and clean project structure. It serves as a foundation for more advanced React topics.
Happy coding! 🚀