Skip to content

Aditya5989/react-api-fetch-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“Œ Project Overview

This experiment demonstrates how to fetch data from a public REST API (e.g., JSONPlaceholder posts), display it in a table, and handle loading/error states using React.

Fetching data dynamically allows applications to display real-time information and handle asynchronous API responses.


πŸš€ Getting Started

1. Verify Node.js installation

Make sure Node.js and npm are installed properly:

bash node -v npm -v `

πŸ“‚ Project Structure

api-fetch-demo/ β”œβ”€β”€ src/ β”‚ β”œβ”€β”€ App.js # Main React component β”‚ └── Posts.js # Component fetching and displaying API data β”œβ”€β”€ package.json # Project configuration file └── README.md # Documentation

βœ… Output

WhatsApp Image 2025-09-23 at 14 00 50_b1731adf

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published