React Snippets & Scaffolding Tool 🚀React Snippets & Scaffolding Tool is a premium, fully-integrated, production-ready VS Code extension designed to accelerate modern React development workflows. It offers interactive, multi-framework project scaffolding, responsive Tailwind CSS layouts, smart component generation, and a gorgeous, category-filtered Visual Snippets Explorer dashboard. 🌟 Key Features🚀 1. Interactive Project Scaffolder (
|
| Trigger Shortcut | Description | Premium Tailwind CSS Layouts / Outputs |
|---|---|---|
!nav |
Responsive Navbar | Sticky glassmorphic layout, SVG mobile hamburger menu, gradient text logo |
!landingpage |
Responsive Landing Page | Hero section with gradient titles, CTAs, and responsive grid framework |
!testimonial |
Testimonial Card | Centered modern citation block with italic quote styles and profile details |
!slider |
Interactive Carousel | State-controlled React carousel slider with previous/next buttons and track transitions |
!footer |
Multi-Column Footer | Corporate multi-column grid with newsletter hooks, social handles, and copyright layouts |
!component |
Functional Component | Standard export component skeleton |
!state |
React useState Hook |
Destructured state variable and capitalized dispatcher setter hook |
!route |
React Router Setup | BrowserRouter, Routes, and initial nested Route structure |
!link |
React Router Link | <Link> navigator routing hook component |
!props |
Props Destructuring | Function signature utilizing structured destructured properties |
!event |
Event Handler | Callback structure template with event payloads |
!jsx |
JSX Expression | Basic JSX expression structure with container classes |
📖 Usage & Setup Guide
Running Project Starters
- Right-click a folder in the VS Code Explorer panel.
- Select Create React Starter Project.
- Pick one of the Vite or Next.js starters (JS or TS).
- Wait for the automatic
npm installprogress notification to finish. - Launch the local environment:
- Vite: Run
npm run startornpm run dev - Next.js: Run
npm run dev
- Vite: Run
Creating Components & Tests
- Right-click your desired destination folder (e.g.
src/components). - Select Create React Component.
- Type in the component's name (e.g.,
Button). - Instantly receive your UI file and your matching unit test file.
Opening Visual Explorer
- Open any React file (
.js,.jsx,.ts,.tsx). - Right-click inside your code editor pane.
- Select React Snippets: Open Visual Explorer.
📋 Requirements
- VS Code v1.85.0 or higher.
- Node.js v18.x or higher (required for executing scaffolded template packages locally).
📦 Version History
v0.0.7 (Current Release)
- README Overhaul: Rewrote the full extension documentation to cover all four starter templates (Vite JS/TS, Next.js App Router JS/TS), the Visual Snippets Explorer, Smart Component Scaffolder, and complete prefix autocomplete reference table.
v0.0.6
- Windows Dev Server Stability: Upgraded templates Next.js dependency to
^14.2.15to resolve a critical Node 22.x/20.x watchpack relative-path crash on Windows. - Tailwind Snippet Upgrade: Upgraded all layout snippets (
!nav,!landingpage,!testimonial,!slider,!footer) to fully responsive utility-first Tailwind CSS designs. - React Router Integration: Configured modern Router future flags (
v7_startTransitionandv7_relativeSplatPath) inside Vite templates. - Accessibility Enhancements: Standardized form validation tags (
autoComplete, matching inputs, and unique IDs) across starter contact flows.
v0.0.5
- Next.js Integration: Introduced two new advanced Next.js App Router templates (JS/TS configurations) with pre-configured multi-page indexing keywords, layout containers, and hydration-safe theme togglers.
v0.0.4
- CSP Security Tuning: Configured strict CSP headers for the Webview panels to shut down console warnings.
v0.0.3
- Router Optimizations: Added Vite template future flag overrides.
v0.0.2
- Package Context mapping: Enabled optional explorer target
uriparameter triggers for all command selections.
v0.0.1
- Initial Release: Basic React structure scaffolding and standard functional hooks autocomplete.
Boost your React layout & component design workflow today! 🚀 Designed and built with passion by Ali Ihtsham.