This directory implements a structured approach to managing API-related React hooks, ensuring clean separation of concerns and maintainable data operations.
Handles all data modification operations:
- Purpose: Writing, updating, or deleting data
- HTTP Methods: POST, PUT, PATCH, DELETE
- Naming Convention:
useAction[Operation], e.g.:useCreateUseruseUpdateProfileuseDeletePost
Manages all data retrieval operations:
- Purpose: Reading or fetching data
- HTTP Method: GET
- Naming Convention:
useGet[Resource], e.g.:useGetUserProfileuseGetProjectListuseGetDashboardStats
- Clear Separation: Distinct folders for read vs. write operations
- Predictable Naming: Consistent naming patterns for easy discovery
- Maintainable Code: Isolated concerns make updates and testing easier
- Team Efficiency: Clear structure helps new developers navigate the codebase
- Keep hooks focused on single responsibilities
- Implement proper error handling
- Use TypeScript for better type safety
- Add JSDoc comments for complex hooks
interfaces --> hooks use interface as output for hooks
Access our project's visual architecture and planning resources through our interactive mindmap.
- Interactive Mindmap - View full project structure and relationships
- Email: [email protected]
- Password: string
⚠️ Note: These credentials are for development purposes only. Never commit real production credentials to source control.