A simple image gallery built with React that fetches random images from the Picsum Photos API using Axios.
- Fetches images from the Picsum Photos API
- Displays images in a responsive gallery
- Uses React functional components and Hooks
- API requests handled with Axios
- Easy to extend with pagination or infinite scrolling
- React
- JavaScript (ES6+)
- Axios
- CSS
- Clone the repository:
git clone <your-repository-url>- Navigate to the project folder:
cd <project-folder>- Install dependencies:
npm install- Start the development server:
npm run devor, if using Create React App:
npm startThis project uses the Picsum Photos API to fetch image data.
Example endpoint:
https://picsum.photos/v2/list?page=1&limit=30
src/
├── components/
│ └── Card.jsx
├── App.jsx
├── main.jsx
└── index.css