Frontend Engineer · interview questions
Frontend Engineer interview questions: how you'd do it
From the role's core and recommended topics, most asked first. Filter by the kind of answer the question wants.
React Developer Core 11
- How do you choose between Context, Zustand, Redux Toolkit and server-state libraries?
- What makes a well-designed custom hook?
- How do you build robust forms in React?
- How can you use the `key` prop to reset a component's state?
- How do you build an accessible modal dialog in React?
- How do you render very large lists efficiently?
- How do you find performance problems in a React app?
- How do you code-split a React app?
- How do you build and maintain a React design system?
- How do you internationalize a React app?
- How do you add performant animations in React?
TypeScript Developer Core 21
- How do you type React component props, children and events in TypeScript?
- How do you type hooks like `useState`, `useReducer`, `useRef` and context?
- How do you write a generic React component (e.g., a typed List or Select)?
- How would you migrate a large JavaScript codebase to TypeScript?
- How do you model immutability in TypeScript?
- How should you handle errors in `catch` blocks in TypeScript?
- How do you test types themselves?
- How do you type an Express/Node API in TypeScript?
- How can you share types between frontend and backend?
- How would you implement a `DeepPartial<T>` type?
- How do you type async functions and promises?
- How do you type environment variables safely?
- How do you publish a TypeScript library with correct types for ESM and CommonJS consumers?
- How would you type an event emitter so event names and payloads are checked?
- How do you write a type-safe fetch wrapper?
- How do you implement mixins in TypeScript?
- How do you add types to globals like `window`?
- How do you type Maps, Sets and WeakMaps?
- How would you type a generic repository class?
- How do you safely use data from `JSON.parse` without a schema library?
- How do you make a class implement an interface, and what does `implements` actually check?
HTML & CSS Core 3
Next.js Developer Core 28
- Most asked How do you manage metadata and SEO in the App Router?
- Most asked How do you implement authentication in a Next.js App Router app?
- Most asked What causes hydration mismatch errors and how do you fix them?
- Most asked How do you optimize Core Web Vitals in a Next.js app?
- How do you build forms with Server Actions, validation and pending states?
- How do you load third-party scripts efficiently in Next.js?
- How do you design good loading states in the App Router?
- How do you implement internationalization in the App Router?
- How do you test a Next.js application?
- How do you add a Content Security Policy to a Next.js app?
- How do you add observability to a Next.js app?
- How do you access a database from Next.js safely and efficiently?
- How would you migrate a large Next.js app from the Pages Router to the App Router?
- How do you read and set cookies and headers in the App Router?
- How do you avoid request waterfalls in Server Components?
- How do you add real-time features to a Next.js app?
- How do you structure a Next.js app in a monorepo?
- How do you find and reduce large client bundles in Next.js?
- How do you generate dynamic Open Graph images in Next.js?
- How do you colocate non-route files inside the `app` directory?
- How do you read query parameters in a Server Component page?
- How would you implement pagination and filters in the App Router?
- How do you implement a URL-addressable modal in the App Router?
- How should you handle third-party webhooks in Next.js?
- How can you preload critical resources in the App Router?
- How do you debug unexpected stale data in a Next.js App Router app?
- How do you investigate a production-only error that shows 'An error occurred in the Server Components render'?
- What should you consider for focus management during client-side navigation in Next.js?
Vue.js Developer Recommended 9
- Most asked How do you use Vue Router: dynamic routes, nested routes and navigation guards?
- Most asked How do you optimise the performance of a Vue application?
- Most asked How do you test Vue components?
- How do you fetch data in Vue components robustly?
- How do you use a Pinia store correctly in components, and what is storeToRefs for?
- How do you lazy-load routes and code-split a Vue application?
- What causes hydration mismatches, and how do you fix them?
- How do you make a Vue single-page application SEO-friendly?
- How do you use TypeScript with Vue?
Tailwind CSS Recommended 7
- Most asked How do you customize Tailwind's design tokens in v4?
- Most asked How do you set up Tailwind CSS v4 in a project?
- Most asked How do you implement dark mode with Tailwind?
- Most asked How do you avoid repeating long class lists?
- Most asked How do you make Tailwind interfaces accessible?
- How do you fix horizontal scrolling on mobile in a Tailwind layout?
- How do you style forms in Tailwind?
Web Security & WAF Recommended 4
Performance & Scalability Recommended 6
Testing Recommended 19
- Most asked What makes a good unit test?
- Most asked How do you write reliable integration tests that use a database?
- Most asked What causes flaky tests and how do you fix them?
- How do you test code that depends on the current time or randomness?
- How do you test code that calls external HTTP services?
- How should you test frontend components?
- How do you test an API, and what would you automate?
- How do you approach performance and load testing?
- How do you manage test data for automated tests?
- What should block a release, and how do you report quality to stakeholders?
- How do you test a feature behind a feature flag?
- How do you integrate automated tests into a CI/CD pipeline?
- How should you manage test data?
- How do you test asynchronous code?
- How do you prevent regressions when fixing bugs?
- How do you include security testing in development?
- How do you add tests to legacy code that wasn't designed for testing?
- How do you test code behind feature flags?
- How do you test accessibility?