Skip to content

Himanshukans/react-router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Router v7 Explorer & GitHub Profile Finder

A professional, highly optimized multi-page web application built using React.js and styled with Tailwind CSS. The core highlight of this project is the production-ready routing architecture built entirely on the latest React Router v7 (Data Routers) workflow, featuring synchronous pre-fetching pipelines and robust state management.

The application serves as a decoupled dashboard showcasing clean directory design, dynamic parameter mapping, and edge-case error prevention.


🚀 Key Features

  • Advanced Data Architecture (React Router v7): Implemented cutting-edge Data Routers instead of legacy route wrappers. The application asynchronously pre-fetches remote API datasets before mounting components to ensure zero-lag transitions.
  • Dynamic Profile Finder: A fully controlled search engine that hooks into the GitHub REST API. It handles runtime input mutations, filters structural syntax, and renders complex profile metrics (including avatars, distinct handles, and live follower counts).
  • Graceful Hydration States: Solved asset latency flickers by configuring modular HydrateFallback loader views. If the network experiences lag, a seamless loading layout prevents interface breaks.
  • Robust Error Boundary Control: Configured sanitization logic inside asynchronous workflows (using conditional fallback states like null returns) to gracefully capture failed lookups and pivot to safe user-friendly views.
  • Decoupled Layout System: Built a permanent master shell using <Layout /> and <Outlet /> bounds, ensuring global components like the Header and Footer remain stable across sub-path renders.

🛠️ Tech Stack & Concepts Covered

  • Frontend Core: React.js (Scaffolded with Vite workflow)
  • Styling UI: Tailwind CSS (Utility-first responsive layouts)
  • Routing Engine: React Router v7 (Modern Data Routers framework)
  • Data Integration: Native JavaScript Async/Await fetch API, dynamic path tokens (:userid), and programmatic redirection hooks (useNavigate).
  • Form Control Logic: Safe string parsing utilizing .trim() and layout protection through e.preventDefault() to intercept accidental browser reloads.

📂 Project Structure

The project maintains a highly modular and predictable folder layout to maximize scalability and code readability:

src/
├── Components/
│   ├── About/
│   ├── Contact-Us/
│   ├── Github/
│   │   └── Github.jsx       # Input evaluation & main visualization layouts
│   ├── Home/
│   └── User/
├── Services/
│   └── GithubLoader.js      # Decoupled Data Service (Asynchronous route loaders)
├── Layout.jsx               # Global structural skeleton (Permanent UI Shell)
├── main.jsx                 # Routing Core Entry (Path mapping & fallback orchestration)
└── index.css                # Global Tailwind configurations

About

A high-performance multi-page React application leveraging modern React Router v7 Data Routers. Features an optimized GitHub profile search engine with asynchronous pre-fetching loaders, secure string parsing, conditional runtime validations, and structural layout isolation via sub-path configuration.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors