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
- Most asked Explain React concept: JSX.
- Most asked Explain React concept: props.
- Most asked Explain React concept: state.
- Most asked Explain React concept: unidirectional data flow.
- Most asked Explain React concept: keys in lists.
- Most asked Explain React concept: lifting state up.
- Most asked Explain React concept: reconciliation.
- Most asked React performance: React.memo?
- Explain React concept: components.
- Discuss testing-library in React applications.
- Discuss accessibility (a11y) in React applications.
- How do Actions and `useActionState` work in React 19?
- Explain React concept: derived state anti-pattern.
- Explain React concept: pure components.
- Explain React concept: error boundaries.
- Explain React concept: Suspense.
- Explain React concept: lazy / code splitting.
- React performance: virtualization?
- React performance: profiling?
- Discuss React Router in React applications.
- Discuss TanStack Query in React applications.
- Discuss Vitest/Jest in React applications.
- Discuss Next.js in React applications.
- Discuss forms in React applications.
- Discuss auth patterns in React applications.
- How does `useOptimistic` implement optimistic UI?
- How did refs change in React 19?
- How does TanStack Query manage server state?
- How do server-side rendering and hydration work in React?
- How should React components be tested?
- What happens in the browser from navigation until a React page shows its data, and how do you avoid request waterfalls?
- Explain React concept: fragments.
- Explain React concept: portals.
- Explain React concept: Strict Mode.
- Explain React concept: Server Components (RSC).
- React performance: avoid inline object props?
- React performance: key remounting?
- React performance: batching?
- React performance: concurrent features?
- React performance: bundle analysis?
- Discuss CSS modules / Tailwind in React applications.
- How does React 19 handle `<title>`, `<meta>` and stylesheets rendered in components?
- How does React's event system work?
- How do XSS risks show up in React apps?
- How do error boundaries interact with async errors and event handlers?
- How should a React SPA handle authentication tokens securely?
- How do class component lifecycle methods map to hooks?
- In an RSC app, how do you decide what should be a Client Component?
- How does automatic batching work in React 18+?
- How does useEffect work in functional React components?
TypeScript Developer Core 20
- Most asked Explain `any`, `unknown` and `never`.
- Most asked Explain conditional types and the `infer` keyword.
- Most asked How do function overloads work in TypeScript and when are they better than unions?
- Most asked Explain `keyof`, `typeof` (in type position) and indexed access types.
- How does type inference work in TypeScript, and when should you annotate explicitly?
- How do optional chaining (`?.`) and nullish coalescing (`??`) work with types?
- Explain `void` as a return type and why a callback typed `() => void` can return a value.
- How are tuples typed in TypeScript, including labeled and variadic tuples?
- Can Node.js run TypeScript directly?
- How do path aliases (`@/components`) work, and what's the common pitfall?
- How does TypeScript type `this`?
- Explain `Exclude`, `Extract` and `NonNullable`.
- How are generators and iterators typed?
- Can you get TypeScript checking in plain JavaScript files?
- Can you pass a `readonly string[]` to a function expecting `string[]`?
- How can generics make a builder pattern type-safe (e.g., tracking which fields are set)?
- How can `Record<Union, T>` catch bugs when a union grows?
- How are getters, setters and the `accessor` keyword typed?
- How does the `in` operator narrow union types?
- How do you safely work with DOM elements in TypeScript?
HTML & CSS Core 4
Next.js Developer Core 28
- Most asked Explain the App Router file conventions: page, layout, loading, error, not-found, template and route.
- Most asked How does data fetching work in the App Router?
- Most asked How did caching defaults change in Next.js 15?
- Most asked Explain SSR, SSG, ISR and CSR in Next.js.
- Most asked What happens, step by step, when a request reaches a Next.js App Router application?
- Most asked How do dynamic routes, catch-all and optional catch-all segments work?
- Most asked How does streaming with Suspense work in Next.js?
- Most asked How do `revalidatePath` and `revalidateTag` work?
- Most asked How do environment variables work in Next.js, and what is exposed to the browser?
- Most asked How do `getServerSideProps`, `getStaticProps` and `getStaticPaths` work in the Pages Router?
- How can a Client Component render Server Component content?
- Describe the caching layers in the Next.js App Router.
- How does navigation work with `<Link>` and `useRouter` in the App Router?
- How does error handling work in the App Router?
- How does `next/dynamic` work and when do you use it?
- How do redirects, rewrites and headers work in `next.config`?
- How does state management change with Server Components?
- How does React 19's `use()` hook help with data in Next.js?
- How are static assets served in Next.js?
- How do `redirect()`, `permanentRedirect()` and `notFound()` work?
- How does Next.js support TypeScript?
- How should errors in Server Actions be handled for good UX?
- How do you make a Route Handler's GET response static or cached?
- How do you stream a response (e.g., AI tokens) from a Route Handler?
- How does image optimization work when self-hosting Next.js?
- How do you call a Server Action from an event handler instead of a form?
- How do you handle runtime configuration that changes per environment without rebuilding?
- How does Next.js protect against XSS and where can you still introduce it?
Vue.js Developer Recommended 16
- Most asked computed, watch or watchEffect: when do you use each?
- Most asked How do props work, and what is one-way data flow?
- Most asked Describe the Vue component lifecycle hooks and what you use them for.
- Most asked How does v-model work on components, and what does defineModel do?
- Most asked Explain default, named and scoped slots.
- Most asked How does server-side rendering work with Vue, and what does Nuxt add?
- Most asked How does Vue's virtual DOM and compiler make updates efficient?
- How do components emit events, and how do you declare them?
- How do you handle forms and validation in Vue?
- How do you handle errors in a Vue application?
- Can you share state without Pinia, and what is the SSR pitfall?
- How do sibling components communicate?
- How do memory leaks happen in Vue apps, and how do you prevent them?
- How can changing a component's key help, and when is it the wrong tool?
- How do transitions work in Vue?
- How do class and style bindings work?
Tailwind CSS Recommended 5
- Most asked How does Tailwind decide which CSS to generate?
- Most asked Explain Tailwind's responsive design approach.
- Most asked How do variants like hover:, focus-visible:, group- and peer- work?
- If an element has class="p-4 p-2", which wins? How do you handle overrides in components?
- How do opacity modifiers and the colour palette work in v4?
Web Security & WAF Recommended 4
Performance & Scalability Recommended 7
- Most asked How do load balancers work, and what algorithms do they use?
- How does autoscaling work and what are its pitfalls?
- How does a CDN improve performance?
- How can garbage collection affect application performance?
- How can moving work to background jobs improve performance?
- How can serialization become a bottleneck?
- How do algorithm and data structure choices affect backend performance?
Testing Recommended 3
Behavioral & STAR Recommended 8
- Most asked Describe a disagreement you had with a coworker and how you resolved it.
- Most asked Describe a mistake that had a significant impact and how you handled it.
- Most asked Describe a project you owned from start to finish.
- Describe a situation where you had to make a decision without all the information you wanted.
- Describe how you decide what to work on when everything feels urgent.
- Describe how you handle working on something without a clear owner.
- Describe your approach to onboarding a new team member.
- Describe how you typically respond to criticism.