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

  1. How do you choose between Context, Zustand, Redux Toolkit and server-state libraries?
  2. What makes a well-designed custom hook?
  3. How do you build robust forms in React?
  4. How can you use the `key` prop to reset a component's state?
  5. How do you build an accessible modal dialog in React?
  6. How do you render very large lists efficiently?
  7. How do you find performance problems in a React app?
  8. How do you code-split a React app?
  9. How do you build and maintain a React design system?
  10. How do you internationalize a React app?
  11. How do you add performant animations in React?

TypeScript Developer Core 21

  1. How do you type React component props, children and events in TypeScript?
  2. How do you type hooks like `useState`, `useReducer`, `useRef` and context?
  3. How do you write a generic React component (e.g., a typed List or Select)?
  4. How would you migrate a large JavaScript codebase to TypeScript?
  5. How do you model immutability in TypeScript?
  6. How should you handle errors in `catch` blocks in TypeScript?
  7. How do you test types themselves?
  8. How do you type an Express/Node API in TypeScript?
  9. How can you share types between frontend and backend?
  10. How would you implement a `DeepPartial<T>` type?
  11. How do you type async functions and promises?
  12. How do you type environment variables safely?
  13. How do you publish a TypeScript library with correct types for ESM and CommonJS consumers?
  14. How would you type an event emitter so event names and payloads are checked?
  15. How do you write a type-safe fetch wrapper?
  16. How do you implement mixins in TypeScript?
  17. How do you add types to globals like `window`?
  18. How do you type Maps, Sets and WeakMaps?
  19. How would you type a generic repository class?
  20. How do you safely use data from `JSON.parse` without a schema library?
  21. How do you make a class implement an interface, and what does `implements` actually check?

HTML & CSS Core 3

  1. How do you safely display user-generated content in HTML?
  2. How do you make an HTML table accessible, and when shouldn't you use a table?
  3. How do you add video with captions in HTML5?

Next.js Developer Core 28

  1. Most asked How do you manage metadata and SEO in the App Router?
  2. Most asked How do you implement authentication in a Next.js App Router app?
  3. Most asked What causes hydration mismatch errors and how do you fix them?
  4. Most asked How do you optimize Core Web Vitals in a Next.js app?
  5. How do you build forms with Server Actions, validation and pending states?
  6. How do you load third-party scripts efficiently in Next.js?
  7. How do you design good loading states in the App Router?
  8. How do you implement internationalization in the App Router?
  9. How do you test a Next.js application?
  10. How do you add a Content Security Policy to a Next.js app?
  11. How do you add observability to a Next.js app?
  12. How do you access a database from Next.js safely and efficiently?
  13. How would you migrate a large Next.js app from the Pages Router to the App Router?
  14. How do you read and set cookies and headers in the App Router?
  15. How do you avoid request waterfalls in Server Components?
  16. How do you add real-time features to a Next.js app?
  17. How do you structure a Next.js app in a monorepo?
  18. How do you find and reduce large client bundles in Next.js?
  19. How do you generate dynamic Open Graph images in Next.js?
  20. How do you colocate non-route files inside the `app` directory?
  21. How do you read query parameters in a Server Component page?
  22. How would you implement pagination and filters in the App Router?
  23. How do you implement a URL-addressable modal in the App Router?
  24. How should you handle third-party webhooks in Next.js?
  25. How can you preload critical resources in the App Router?
  26. How do you debug unexpected stale data in a Next.js App Router app?
  27. How do you investigate a production-only error that shows 'An error occurred in the Server Components render'?
  28. What should you consider for focus management during client-side navigation in Next.js?

Vue.js Developer Recommended 9

  1. Most asked How do you use Vue Router: dynamic routes, nested routes and navigation guards?
  2. Most asked How do you optimise the performance of a Vue application?
  3. Most asked How do you test Vue components?
  4. How do you fetch data in Vue components robustly?
  5. How do you use a Pinia store correctly in components, and what is storeToRefs for?
  6. How do you lazy-load routes and code-split a Vue application?
  7. What causes hydration mismatches, and how do you fix them?
  8. How do you make a Vue single-page application SEO-friendly?
  9. How do you use TypeScript with Vue?

Tailwind CSS Recommended 7

  1. Most asked How do you customize Tailwind's design tokens in v4?
  2. Most asked How do you set up Tailwind CSS v4 in a project?
  3. Most asked How do you implement dark mode with Tailwind?
  4. Most asked How do you avoid repeating long class lists?
  5. Most asked How do you make Tailwind interfaces accessible?
  6. How do you fix horizontal scrolling on mobile in a Tailwind layout?
  7. How do you style forms in Tailwind?

Web Security & WAF Recommended 4

  1. How do you protect a web application from DDoS and abusive traffic?
  2. How do you manage vulnerable and outdated dependencies?
  3. How do you protect sign-up, login and checkout flows from bots?
  4. How do you build security into the development lifecycle?

Performance & Scalability Recommended 6

  1. Most asked How do you approach a performance problem methodically?
  2. How do you load test a system effectively?
  3. How would you scale a read-heavy system?
  4. How would you scale a write-heavy system?
  5. How do you reduce payload sizes in web applications?
  6. How do you do capacity planning?

Testing Recommended 19

  1. Most asked What makes a good unit test?
  2. Most asked How do you write reliable integration tests that use a database?
  3. Most asked What causes flaky tests and how do you fix them?
  4. How do you test code that depends on the current time or randomness?
  5. How do you test code that calls external HTTP services?
  6. How should you test frontend components?
  7. How do you test an API, and what would you automate?
  8. How do you approach performance and load testing?
  9. How do you manage test data for automated tests?
  10. What should block a release, and how do you report quality to stakeholders?
  11. How do you test a feature behind a feature flag?
  12. How do you integrate automated tests into a CI/CD pipeline?
  13. How should you manage test data?
  14. How do you test asynchronous code?
  15. How do you prevent regressions when fixing bugs?
  16. How do you include security testing in development?
  17. How do you add tests to legacy code that wasn't designed for testing?
  18. How do you test code behind feature flags?
  19. How do you test accessibility?

Was this page helpful?

Report a mistake