React Js UI Guide Prompts
Implement FlexBase UI with React: hooks, services, forms, dialogs, authentication, API response handling, and more.
How to Use
Tell your AI agent what React UI you want to build. It will load the right conventions and guide sections automatically.
Example prompts you can give your AI agent:
Create the API service for the Products moduleBuild a list component with pagination for CustomersCreate a custom hook for the Orders APISet up the authentication contextFix the API response unwrapping in my base serviceCreate a form with React Hook Form for Order editingImplement the complete React UI for InvoicesTask Catalog
Critical Rules (Applied Automatically)
NEVER remove
idfrom Update/Delete DTOs — causes silent API failuresAll IDs are
stringtype in TypeScript interfacesApiResponse<T> wrapper — always unwrap
.resultfrom API responses
Service Tasks
Create Base API Service
Axios/fetch base with response unwrapping, error handling
Create Module Service
Entity-specific service extending base
Create Custom Hook
useEntity hook wrapping API calls
Review API Services
Audit services for pattern violations
Authentication Tasks
Token Storage Service
Secure token storage and retrieval
Authentication Service
Login/logout/refresh token flows
Auth Context
React Context for authentication state
Component Tasks
Create List Component
Data table with pagination, sorting, filtering
Create Form (React Hook Form)
Form with validation
Autocomplete for Foreign Keys
Lookup/search for related entities
Dialog Tasks
Create Dialog Service
Centralized dialog management
Create Modal Component
Modal with form/view content
Routing & State Tasks
Configure Routes
React Router setup
Private Route Component
Auth-protected routes
Context API State
State with Context + useReducer
Redux State
Redux Toolkit state management
Complete Implementation Tasks
Complete Entity UI
Full UI: list + form + service + routing
Complete Project Review
Full audit against React guide
Sync DTOs with API
Compare React interfaces with API DTOs
Related
API patterns (build API first): FlexBase API Patterns
Generate UI from extraction JSON: Implementation Completion
Blazor alternative: Blazor FluentUI
Angular alternative: Angular UI
Last updated