Loading...
Loading...
Debug React component issues including TypeScript types, props, state management, hooks, and rendering problems. Use when troubleshooting component not rendering, prop errors, state not updating, hook issues, or TypeScript type mismatches.
npx skill4agent add allthriveai/allthriveai react-component-analyzerfrontend/src/components/frontend/src/pages/frontend/src/types/frontend/src/services/// Check: Is it exported correctly?
export default ComponentName; // or
export { ComponentName };
// Check: Is the route configured?
<Route path="/page" element={<ComponentName />} />// Check: Does interface match API response?
interface Project {
id: number;
title: string; // API might return 'name' not 'title'
}// Check: Dependencies array
useEffect(() => {
// This only runs when `id` changes
}, [id]); // Missing dependency?// Check: Query invalidation after mutation
const mutation = useMutation({
onSuccess: () => {
queryClient.invalidateQueries({ queryKey: ['projects'] });
}
});frontend/src/
├── components/
│ ├── common/ # Shared components
│ ├── projects/ # Project-specific components
│ └── ui/ # UI primitives
├── pages/
│ ├── ExplorePage.tsx # Explore/discovery page
│ ├── ProjectPage.tsx # Single project view
│ └── DashboardPage.tsx
├── types/
│ ├── models.ts # Data model types
│ └── api.ts # API response types
├── services/
│ ├── api.ts # Axios instance
│ └── projects.ts # Project API calls
└── hooks/
└── useProjects.ts # Custom hooks# Run TypeScript check
cd frontend && npx tsc --noEmit
# Check specific file
npx tsc --noEmit src/components/MyComponent.tsx