{"id":23592976,"url":"https://github.com/elazzouzihassan/reactroutertp","last_synced_at":"2026-04-11T03:31:25.543Z","repository":{"id":269459496,"uuid":"907467308","full_name":"ElazzouziHassan/ReactRouterTP","owner":"ElazzouziHassan","description":"A simple React app that demonstrates the use of React Router with lazy loading, navigation, and styled components. The app includes basic pages (Home, About, and Contact) and a loading fallback during the lazy loading of components.","archived":false,"fork":false,"pushed_at":"2024-12-23T17:55:21.000Z","size":48,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-16T17:42:06.236Z","etag":null,"topics":["css","javascript","lazy-loading","navigation","react","react-router","react-router-dom","react-styling","single-page-applications","spa","vite"],"latest_commit_sha":null,"homepage":"https://react-router-tp.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ElazzouziHassan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-23T16:41:16.000Z","updated_at":"2025-01-07T09:35:43.000Z","dependencies_parsed_at":"2024-12-23T18:42:12.689Z","dependency_job_id":null,"html_url":"https://github.com/ElazzouziHassan/ReactRouterTP","commit_stats":null,"previous_names":["elazzouzihassan/reactroutertp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ElazzouziHassan/ReactRouterTP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElazzouziHassan%2FReactRouterTP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElazzouziHassan%2FReactRouterTP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElazzouziHassan%2FReactRouterTP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElazzouziHassan%2FReactRouterTP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ElazzouziHassan","download_url":"https://codeload.github.com/ElazzouziHassan/ReactRouterTP/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElazzouziHassan%2FReactRouterTP/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31668046,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","javascript","lazy-loading","navigation","react","react-router","react-router-dom","react-styling","single-page-applications","spa","vite"],"created_at":"2024-12-27T08:16:58.664Z","updated_at":"2026-04-11T03:31:25.517Z","avatar_url":"https://github.com/ElazzouziHassan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Router 🚀\n\nA simple React app that demonstrates the use of **React Router** with lazy loading, navigation, and styled components.\n\nThis project was created with **Vite** to ensure fast development and optimized builds.\n\n---\n\n## Features ✨\n- **React Router** for routing between pages.\n- **Lazy Loading** with `React.lazy` and `Suspense` for optimized component loading.\n- Custom **fallback loader** during page transitions.\n\n---\n\n## Pages 🖥️\n- **Home**: Displays the homepage content.\n- **About**: Provides details about the app.\n- **Contact**: A simple contact page.\n- **404 Page (optional)**: You can expand this app to handle unknown routes.\n\n---\n\n## Prerequisites 🛠️\n\nMake sure you have the following installed on your system:\n- Node.js (\u003e= 16.x recommended)\n- npm or yarn\n\n---\n\n## Getting Started 🏃‍♂️\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/ElazzouziHassan/ReactRouterTP.git\n   cd ReactRouterTP\n   ```\n\n2. Install dependencies:\n  ```bash\n    npm install\n  ```\n\n3. Start the development server:\n  ```bash\n    npm run dev\n  ```\n4. Open your browser and navigate to:\n  ```bash\n    http://localhost:5173\n  ```\n## File Structure 📂\n  ```bash\n  src/\n  ├── pages/\n  │   ├── DynamicPage.jsx\n  │   ├── NoyFound.jsx\n  ├── components/\n  │   ├── Home.jsx\n  │   ├── About.jsx\n  │   ├── Contact.jsx\n  │   ├── Services.jsx\n  ├── utils/\n  │   └── delay.js\n  ├── App.jsx\n  ├── App.css\n  ├── main.jsx\n  ```\n- components/: Contains the React components for each page.\n- utils/delay.js: Simulates delay for lazy loading.\n- App.jsx: Main application file with routing and navigation.\n- App.css: Centralized styling for the app.\n- main.jsx: Entry point of the app.\n\n## Technologies Used 🛠️\n- React\n- React Router\n- React.lazy \u0026 Suspense\n- CSS Styling\n- Vite\n\n## How It Works ⚙️\n- Lazy Loading: Pages are loaded only when visited using React.lazy.\n- Fallback: A \"Loading...\" message is shown during the loading of components.\n- Navigation: Styled links are provided for seamless navigation between pages.\n\n## Contribution 🤝\nFeel free to fork this repository, raise issues, or submit pull requests! All contributions are welcome.\n---\n## AUTHOR \nEL AZZOUZI HASSAN (WIZARDY).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felazzouzihassan%2Freactroutertp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felazzouzihassan%2Freactroutertp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felazzouzihassan%2Freactroutertp/lists"}