This is the documentation site for the Data Structure React Hooks library, built with Astro.
- Comprehensive Documentation: Complete API reference for all hooks
- Live Examples: Interactive examples for each hook
- Beautiful Design: Modern, responsive design with Tailwind CSS
- TypeScript Support: Full TypeScript documentation and examples
- Search & Navigation: Easy navigation between different sections
- useArray: Reactive array with all native methods
- useMap: Reactive Map with set, delete, and clear operations
- useSet: Reactive Set with add, delete, and clear operations
- useQueue: Reactive Queue implementation
- useStack: Reactive Stack implementation
# Install dependencies
npm install
# Start development server
npm run dev
# Build for production
npm run build
# Preview production build
npm run previewsrc/pages/: Astro pagessrc/components/: React components for live examplessrc/layouts/: Layout componentssrc/styles/: Global styles
- Astro: Static site generator
- React: For interactive components
- Tailwind CSS: Styling
- TypeScript: Type safety
To add new documentation or examples:
- Create new pages in
src/pages/docs/ - Add React components for live examples in
src/components/ - Update navigation in the layout
- Test with
npm run dev