# Framework-Specific Patterns Quick reference for identifying routes, components, state, and APIs across frontend and backend frameworks. ## React (CRA / Vite) | Aspect | Where to Look | |--------|--------------| | Routes | `react-router-dom` — `` or `createBrowserRouter` | | Components | `.tsx` / `.jsx` files, default exports | | State | Redux (`store/`), Zustand, Jotai, Recoil, React Context | | API | `axios`, `fetch`, TanStack Query (`useQuery`), SWR (`useSWR`) | | Forms | React Hook Form, Formik, Ant Design Form, custom `useState` | | i18n | `react-i18next`, `react-intl` | ## Next.js (App Router) | Aspect | Where to Look | |--------|--------------| | Routes | `app/` directory — `page.tsx` = route, folders = segments | | Layouts | `layout.tsx` per directory | | Loading | `loading.tsx`, `error.tsx`, `not-found.tsx` | | API routes | `app/api/` or `pages/api/` (Pages Router) | | Server actions | `"use server"` directive | | Middleware | `middleware.ts` at root | ## Next.js (Pages Router) | Aspect | Where to Look | |--------|--------------| | Routes | `pages/` directory — filename = route | | Data fetching | `getServerSideProps`, `getStaticProps`, `getStaticPaths` | | API routes | `pages/api/` | ## Vue 3 | Aspect | Where to Look | |--------|--------------| | Routes | `vue-router` — `routes` array in `router/index.ts` | | Components | `.vue` SFCs (`