The official documentation site for Light Hooks - A collection of lightweight, performant, and type-safe React hooks for modern applications.
π Documentation β’ π¦ npm Package β’ π» GitHub β’ π Examples
Light Hooks is a comprehensive collection of 16+ carefully crafted React hooks designed to solve common development challenges with minimal overhead. Our hooks are:
- πͺΆ Lightweight: Minimal bundle impact with tree-shakable exports
- β‘ Performant: Optimized for speed and efficiency
- π Type-Safe: Full TypeScript support with comprehensive type definitions
- π§ͺ Well-Tested: Extensively tested across different scenarios
- π± Universal: Works seamlessly across web and React Native
- π§ Developer-Friendly: Intuitive APIs with excellent documentation
|
|
|
|
This repository contains the official documentation website for Light Hooks, built with modern web technologies:
- Next.js 15 - React framework with App Router
- TypeScript - Type-safe development
- Tailwind CSS - Utility-first styling
- MDX - Enhanced markdown with React components
- Algolia Search - Powerful documentation search
- Vercel - Deployment and hosting
- π± Responsive Design - Perfect on all devices
- π Instant Search - Find hooks and examples quickly
- π¨ Syntax Highlighting - Beautiful code examples
- π Copy-to-Clipboard - Easy code copying
- π Dark Mode - Eye-friendly dark theme
- β‘ Fast Loading - Optimized for performance
- π SEO Optimized - Comprehensive meta tags and structured data
- Node.js 18+
- npm, yarn, pnpm, or bun
# Clone the repository
git clone https://github.com/Gourav2609/light-hooks-doc.git
cd light-hooks-doc
# Install dependencies
npm install
# or
yarn install
# or
pnpm install
# Start the development server
npm run dev
# or
yarn dev
# or
pnpm dev
# Open http://localhost:3000 in your browser
# Build the site
npm run build
# Start production server
npm start
light-hooks-doc/
βββ app/ # Next.js app directory
β βββ docs/ # Documentation pages
β βββ blog/ # Blog posts
β βββ globals.css # Global styles
βββ components/ # React components
β βββ ui/ # UI components
β βββ markdown/ # MDX components
β βββ contexts/ # React contexts
βββ contents/ # Documentation content
β βββ docs/ # Hook documentation
β β βββ hooks/ # Individual hook docs
β β βββ getting-started/
β βββ blogs/ # Blog content
βββ lib/ # Utility functions
β βββ routes-config.ts # Navigation configuration
β βββ seo.ts # SEO utilities
β βββ utils.ts # General utilities
βββ public/ # Static assets
βββ styles/ # CSS files
We welcome contributions to improve the documentation! Here's how you can help:
- Found a typo or error? Open an issue
- Missing examples? Let us know!
- Broken links? We'll fix them quickly
- Fork the repository
- Create a feature branch
git checkout -b improve-docs
- Make your changes
- Edit MDX files in
contents/docs/
- Add new examples or clarify existing ones
- Update navigation in
lib/routes-config.ts
- Edit MDX files in
- Test locally
npm run dev
- Submit a pull request
- Clear Examples: Provide practical, real-world examples
- TypeScript First: All examples should include proper typing
- Consistent Format: Follow the established documentation structure
- SEO Friendly: Include proper frontmatter and descriptions
π Documentation |
π§ Development |
This documentation site includes:
- Vercel Analytics - Performance monitoring
- Core Web Vitals - Loading performance optimization
- Search Analytics - Documentation usage insights
- SEO Tracking - Search engine optimization metrics
Documentation site licensed under MIT License.
The Light Hooks library is also licensed under MIT License.
Made with β€οΈ by the Light Hooks team
π Star on GitHub β’ π¦ Follow Updates β’ π¬ Join Discord