What problem does it solve?
This Skill unit simplifies the process of creating React components, API routes, and related utilities by providing standardized templates and guidelines, reducing development time and ensuring consistency across projects.
Core Features & Use Cases
- Component Templates: Offers pre-written templates for UI components, sections, and modals, with conventions for naming, styling, and accessibility.
- API Route Templates: Provides guidelines for creating API routes with proper error handling and logging.
- SWR Hook Templates: Standardizes the creation of SWR hooks for data fetching and caching.
- Context Provider Templates: Ensures consistent state management across components.
- Page Templates: Offers a structure for creating Next.js pages with metadata and content organization.
- Use Case: For a developer looking to quickly set up a new React component or API route, this Skill unit provides a starting point that aligns with the project's coding standards.
Quick Start
Create a new React component by running the command: 'use component-api-scaffolding create-component MyComponent'.