Skip to content

About

React 18 and Vite starter demonstrating React Router, lazy-loaded pages, accessible navigation, and GitHub Pages fallbacks.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Basic React Router App

A practical React Router starter that demonstrates clear route-based navigation, lazy-loaded pages, accessible controls, and a responsive static frontend layout.

Basic React Router App screenshot

Features

  • BrowserRouter routes for home, about, contact, legal pages, and not found states
  • Lazy-loaded pages with a Suspense loading state
  • Fixed header with scroll-aware visibility and a mobile navigation drawer
  • Route scroll reset, keyboard support, focus states, and GitHub Pages fallback
  • Local favicon, logo, social preview, and feature image assets

Tech Stack

  • React 18
  • React Router DOM
  • Vite
  • styled-components
  • React Icons

Setup

npm install
npm run dev

Open the repository base path shown by Vite, usually /basic-react-router-app/.

Production checks and deployment:

npm run lint
npm run build
npm run preview
npm run deploy

The deploy command creates a 404.html fallback for GitHub Pages so direct links to nested routes keep working. It works on Windows, macOS, and Linux.

Future Prospects

  • Add more reusable route examples and nested layouts
  • Add small form and data-fetching demos
  • Add theme preferences and richer page transitions

Images

  • screenshot.png - current home-screen screenshot
  • public/router-pattern.jpg - local feature panel image
  • public/preview.png - social sharing preview
  • public/logo.png - application logo
  • public/favicon.ico - browser favicon

License

MIT License

Links

Support

About

React 18 and Vite starter demonstrating React Router, lazy-loaded pages, accessible navigation, and GitHub Pages fallbacks.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages