/React-News-App

A responsive React.js news application (SPA) with category-based navigation, dynamic images with fallback, top loading bar, and real-time articles powered by an API.

Primary LanguageShell

๐Ÿ“ฐ React News App

React JavaScript SPA News API

A fully functional and feature-rich React-based News Application that brings the latest headlines from various categories. It uses live news data fetched from an API and offers a smooth, user-friendly experience.


๐Ÿš€ Features

๐Ÿ” Dynamic Navigation Bar

Includes ~9 news categories like Sports, Technology, Health, etc. Each category is clickable and fetches related news only.

โณ Top Loader on Category Change

Whenever a user clicks on a category, a top-loading bar appears giving instant feedback while fetching data.

๐Ÿ“‚ Category-Specific News

The selected category dynamically updates the top page title and shows only relevant news articles.

๐Ÿ” Infinite Scroll Pagination

As the user scrolls down, more articles load automatically without needing to click any button. A bottom loader indicates that more content is loading.

๐Ÿงพ Clean News Cards UI

Each article is displayed as a stylish card showing:

  • ๐Ÿ–ผ๏ธ News Image (fallback static image shown if missing)
  • ๐Ÿ“ฐ Title and Description
  • โœ๏ธ Author Name
  • ๐Ÿ“… Published Date
  • ๐Ÿ“บ Source Channel (shown on the top-left of each card)

๐Ÿง  Smooth User Experience

The app ensures minimal delay and intuitive UI/UX using loaders and smooth transitions.


๐Ÿ”ง Tech Stack

  • React.js (Functional Components + Hooks)
  • React Router DOM (For smooth navigation)
  • Fetch API (For fetching news)
  • Infinite Scroll Component
  • Top Loading Bar
  • Responsive CSS

๐ŸŽฅ Live Demo (GIF)

Here is a short demo of the app in action:

App Demo


๐Ÿง‘โ€๐Ÿ’ป Developer

Developed by Asim Mir (asim249)