Frontend Engineer · interview questions

Frontend Engineer interview questions: how it works

From the role's core and recommended topics, most asked first. Filter by the kind of answer the question wants.

React Developer Core 50

  1. Most asked Explain React concept: JSX.
  2. Most asked Explain React concept: props.
  3. Most asked Explain React concept: state.
  4. Most asked Explain React concept: unidirectional data flow.
  5. Most asked Explain React concept: keys in lists.
  6. Most asked Explain React concept: lifting state up.
  7. Most asked Explain React concept: reconciliation.
  8. Most asked React performance: React.memo?
  9. Explain React concept: components.
  10. Discuss testing-library in React applications.
  11. Discuss accessibility (a11y) in React applications.
  12. How do Actions and `useActionState` work in React 19?
  13. Explain React concept: derived state anti-pattern.
  14. Explain React concept: pure components.
  15. Explain React concept: error boundaries.
  16. Explain React concept: Suspense.
  17. Explain React concept: lazy / code splitting.
  18. React performance: virtualization?
  19. React performance: profiling?
  20. Discuss React Router in React applications.
  21. Discuss TanStack Query in React applications.
  22. Discuss Vitest/Jest in React applications.
  23. Discuss Next.js in React applications.
  24. Discuss forms in React applications.
  25. Discuss auth patterns in React applications.
  26. How does `useOptimistic` implement optimistic UI?
  27. How did refs change in React 19?
  28. How does TanStack Query manage server state?
  29. How do server-side rendering and hydration work in React?
  30. How should React components be tested?
  31. What happens in the browser from navigation until a React page shows its data, and how do you avoid request waterfalls?
  32. Explain React concept: fragments.
  33. Explain React concept: portals.
  34. Explain React concept: Strict Mode.
  35. Explain React concept: Server Components (RSC).
  36. React performance: avoid inline object props?
  37. React performance: key remounting?
  38. React performance: batching?
  39. React performance: concurrent features?
  40. React performance: bundle analysis?
  41. Discuss CSS modules / Tailwind in React applications.
  42. How does React 19 handle `<title>`, `<meta>` and stylesheets rendered in components?
  43. How does React's event system work?
  44. How do XSS risks show up in React apps?
  45. How do error boundaries interact with async errors and event handlers?
  46. How should a React SPA handle authentication tokens securely?
  47. How do class component lifecycle methods map to hooks?
  48. In an RSC app, how do you decide what should be a Client Component?
  49. How does automatic batching work in React 18+?
  50. How does useEffect work in functional React components?

TypeScript Developer Core 20

  1. Most asked Explain `any`, `unknown` and `never`.
  2. Most asked Explain conditional types and the `infer` keyword.
  3. Most asked How do function overloads work in TypeScript and when are they better than unions?
  4. Most asked Explain `keyof`, `typeof` (in type position) and indexed access types.
  5. How does type inference work in TypeScript, and when should you annotate explicitly?
  6. How do optional chaining (`?.`) and nullish coalescing (`??`) work with types?
  7. Explain `void` as a return type and why a callback typed `() => void` can return a value.
  8. How are tuples typed in TypeScript, including labeled and variadic tuples?
  9. Can Node.js run TypeScript directly?
  10. How do path aliases (`@/components`) work, and what's the common pitfall?
  11. How does TypeScript type `this`?
  12. Explain `Exclude`, `Extract` and `NonNullable`.
  13. How are generators and iterators typed?
  14. Can you get TypeScript checking in plain JavaScript files?
  15. Can you pass a `readonly string[]` to a function expecting `string[]`?
  16. How can generics make a builder pattern type-safe (e.g., tracking which fields are set)?
  17. How can `Record<Union, T>` catch bugs when a union grows?
  18. How are getters, setters and the `accessor` keyword typed?
  19. How does the `in` operator narrow union types?
  20. How do you safely work with DOM elements in TypeScript?

HTML & CSS Core 4

  1. How do responsive images work with srcset, sizes and picture?
  2. How should headings be structured on a page?
  3. Is target="_blank" on links a security risk?
  4. Who maintains HTML today, and what is the Living Standard?

Next.js Developer Core 28

  1. Most asked Explain the App Router file conventions: page, layout, loading, error, not-found, template and route.
  2. Most asked How does data fetching work in the App Router?
  3. Most asked How did caching defaults change in Next.js 15?
  4. Most asked Explain SSR, SSG, ISR and CSR in Next.js.
  5. Most asked What happens, step by step, when a request reaches a Next.js App Router application?
  6. Most asked How do dynamic routes, catch-all and optional catch-all segments work?
  7. Most asked How does streaming with Suspense work in Next.js?
  8. Most asked How do `revalidatePath` and `revalidateTag` work?
  9. Most asked How do environment variables work in Next.js, and what is exposed to the browser?
  10. Most asked How do `getServerSideProps`, `getStaticProps` and `getStaticPaths` work in the Pages Router?
  11. How can a Client Component render Server Component content?
  12. Describe the caching layers in the Next.js App Router.
  13. How does navigation work with `<Link>` and `useRouter` in the App Router?
  14. How does error handling work in the App Router?
  15. How does `next/dynamic` work and when do you use it?
  16. How do redirects, rewrites and headers work in `next.config`?
  17. How does state management change with Server Components?
  18. How does React 19's `use()` hook help with data in Next.js?
  19. How are static assets served in Next.js?
  20. How do `redirect()`, `permanentRedirect()` and `notFound()` work?
  21. How does Next.js support TypeScript?
  22. How should errors in Server Actions be handled for good UX?
  23. How do you make a Route Handler's GET response static or cached?
  24. How do you stream a response (e.g., AI tokens) from a Route Handler?
  25. How does image optimization work when self-hosting Next.js?
  26. How do you call a Server Action from an event handler instead of a form?
  27. How do you handle runtime configuration that changes per environment without rebuilding?
  28. How does Next.js protect against XSS and where can you still introduce it?

Vue.js Developer Recommended 16

  1. Most asked computed, watch or watchEffect: when do you use each?
  2. Most asked How do props work, and what is one-way data flow?
  3. Most asked Describe the Vue component lifecycle hooks and what you use them for.
  4. Most asked How does v-model work on components, and what does defineModel do?
  5. Most asked Explain default, named and scoped slots.
  6. Most asked How does server-side rendering work with Vue, and what does Nuxt add?
  7. Most asked How does Vue's virtual DOM and compiler make updates efficient?
  8. How do components emit events, and how do you declare them?
  9. How do you handle forms and validation in Vue?
  10. How do you handle errors in a Vue application?
  11. Can you share state without Pinia, and what is the SSR pitfall?
  12. How do sibling components communicate?
  13. How do memory leaks happen in Vue apps, and how do you prevent them?
  14. How can changing a component's key help, and when is it the wrong tool?
  15. How do transitions work in Vue?
  16. How do class and style bindings work?

Tailwind CSS Recommended 5

  1. Most asked How does Tailwind decide which CSS to generate?
  2. Most asked Explain Tailwind's responsive design approach.
  3. Most asked How do variants like hover:, focus-visible:, group- and peer- work?
  4. If an element has class="p-4 p-2", which wins? How do you handle overrides in components?
  5. How do opacity modifiers and the colour palette work in v4?

Web Security & WAF Recommended 4

  1. Most asked How do rate-limiting algorithms work (fixed window, sliding window, token bucket)?
  2. How do you handle file uploads securely?
  3. How should applications manage secrets?
  4. How do cookie prefixes like __Host- and __Secure- improve security?

Performance & Scalability Recommended 7

  1. Most asked How do load balancers work, and what algorithms do they use?
  2. How does autoscaling work and what are its pitfalls?
  3. How does a CDN improve performance?
  4. How can garbage collection affect application performance?
  5. How can moving work to background jobs improve performance?
  6. How can serialization become a bottleneck?
  7. How do algorithm and data structure choices affect backend performance?

Testing Recommended 3

  1. Most asked Is 100% code coverage a good goal?
  2. What is the test pyramid, and when does it not fit?
  3. Where do performance tests fit in a test strategy?

Behavioral & STAR Recommended 8

  1. Most asked Describe a disagreement you had with a coworker and how you resolved it.
  2. Most asked Describe a mistake that had a significant impact and how you handled it.
  3. Most asked Describe a project you owned from start to finish.
  4. Describe a situation where you had to make a decision without all the information you wanted.
  5. Describe how you decide what to work on when everything feels urgent.
  6. Describe how you handle working on something without a clear owner.
  7. Describe your approach to onboarding a new team member.
  8. Describe how you typically respond to criticism.

Was this page helpful?

Report a mistake