A small React app that fetches a list of people, lets you mark favorites, and browse them on a dedicated Favorites page.
- Fetches and displays a list of users (people)
- Mark / unmark favorites and view a Favorites page
- Loading spinner while data is being fetched
- Simple, responsive UI built with styled-components
React (Create React App), JavaScript (ES6+), React Router, styled-components.
public/ static files (index.html, icons)
src/
pages/
Home/ main listing page
Favorites/ favorites page
components/ UserList, FavoritiesList, Spinner, NavBar, Text, CheckBox
hooks/ usePeopleFetch, useFavoritesFetch
constant.js size / variant / color constants
AppRouter.js app routing
git clone https://github.com/galshir/people-finder.git
cd people-finder
npm install
npm startThen open http://localhost:3000 in your browser.
npm start- start the development servernpm run build- build for productionnpm test- run tests
The home page uses usePeopleFetch(), which exposes users, isLoading and fetchUsers to the UserList component. UserList renders the list and allows marking items as favorites. Styling lives in the style.js file next to each component and page.
- Infinite scroll for the user list
- Tests for hooks and components
- Settings page with page size and filtering options
- Fork the repository
- Create a feature branch (
git checkout -b feature/my-feature) - Commit your changes and open a pull request