GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - shankaraswal/js-react-practice: JS and React coding tests and assignments

BranchesTags
Open more actions menu

Latest commit

 

History

10 Commits
10 Commits

Folders and files

NameName
Last commit message
Last commit date
public
public
 
 
src
src
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
eslint.config.js
eslint.config.js
 
 
index.html
index.html
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
vite.config.js
vite.config.js
 
 

Repository files navigation

React + Vite Practice Sandbox šŸš€

A comprehensive React 19 and Vite laboratory repository built with Tailwind CSS v4, dynamic component importing, and custom hooks. Live deployment is hosted on GitHub Pages.

🌐 Live Demo: https://shankaraswal.github.io/js-react-practice/


šŸ› ļø Tech Stack & Tooling

  • Core Framework: React 19, Vite
  • Styling: Tailwind CSS v4
  • Syntax Highlighting: react-syntax-highlighter (Prism / atomDark)
  • Code Quality: ESLint
  • Deployment: gh-pages

✨ Key Features & Demonstrations

1. useLocalStorage Custom Hook

A robust React hook designed to safely manage Local Storage synchronization without stale states or crashing on unparsed JSON string values.

  • Full CRUD Operations: Support for setStorageData, getStorageData, getAllKeyVals, and removeStorageData.
  • Safe JSON Parsing: Built-in try-catch fallbacks to handle plain text strings alongside structured objects/arrays.
  • Auto-Resetting Forms: Clean input management for setting and inspecting key/value pairs in real time.

2. Dynamic Component Showcase & Source Viewer

  • Dynamic Imports: Uses import.meta.glob to load components lazily (Suspense) directly from ./react-comps/*.jsx.
  • Interactive Code Accordions: Built-in source code viewer with line numbers and toggleable expand/collapse mechanics for each demo component.

šŸ“‚ Project Structure

js-react-practice/
ā”œā”€ā”€ public/
│   └── sa.svg              # Custom "SA" favicon
ā”œā”€ā”€ src/
│   ā”œā”€ā”€ hooks/
│   │   └── useLocalStorage.js # Custom Local Storage hook
│   ā”œā”€ā”€ react-comps/        # Individual practice components
│   ā”œā”€ā”€ App.jsx             # Main application container
│   └── ReactComps.jsx      # Dynamic showcase viewer with source accordion
ā”œā”€ā”€ package.json
└── vite.config.js          # Configured with GitHub Pages base path

About

JS and React coding tests and assignments

shankaraswal.github.io/js-react-practice/

Topics

arraycorhooksjslazy-loadingreactserversuspensevirtualization

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Ɨ600. No cookies required.