Frontend Engineer · interview questions
Frontend Engineer interview questions: definition
From the role's core and recommended topics, most asked first. Filter by the kind of answer the question wants.
React Developer Core 16
- Most asked What are the most important changes in React 19?
- Most asked What is concurrent rendering in React?
- Most asked What are the pitfalls of fetching data in `useEffect`, and how do you avoid race conditions?
- What is `useFormStatus` and where must it be used?
- What does the `use()` API do?
- What is the React Compiler and how does it affect `useMemo`/`useCallback`?
- What is the compound components pattern?
- What are stale closures in React hooks and how do you fix them?
- What resource preloading APIs does React DOM provide?
- What is the `<Activity>` component (React 19.2)?
- What problem does `useEffectEvent` (React 19.2) solve?
- What is `useSyncExternalStore` for?
- What are the trade-offs between Tailwind, CSS Modules and CSS-in-JS in React?
- What are micro-frontends and what are their trade-offs in React?
- What breaking changes should you check when upgrading to React 19?
- What is `useInsertionEffect` for?
TypeScript Developer Core 33
- Most asked What is TypeScript and what problems does it solve?
- Most asked What are the differences between `interface` and `type` aliases?
- Most asked What is structural typing in TypeScript?
- Most asked What is type narrowing and what techniques does TypeScript support?
- Most asked What are discriminated unions and why are they powerful?
- Most asked What are generics and how do constraints work?
- Most asked What are mapped types? Show how `Partial` or `Readonly` could be implemented.
- Most asked What does `as const` do?
- Most asked What are union types and how do you work with them safely?
- What are template literal types?
- What are covariance and contravariance in TypeScript function types?
- What are declaration files (`.d.ts`) and how do you type a JavaScript library without types?
- What are `import type`, `isolatedModules` and `verbatimModuleSyntax`?
- What are index signatures and how do they relate to `Record`?
- What are project references and when do you use them?
- What are excess property checks and when do they apply?
- What changed with decorators in TypeScript 5.0?
- What are `using` declarations (TypeScript 5.2)?
- What are `const` type parameters (TS 5.0) and `NoInfer` (TS 5.4)?
- What is `strictPropertyInitialization` and the definite assignment assertion (`!:`)?
- What do `Parameters`, `ConstructorParameters`, `InstanceType` and `ReturnType` give you?
- What does typescript-eslint add beyond the compiler?
- What is the Result pattern in TypeScript and when is it preferable to exceptions?
- What is a `unique symbol` type?
- What do the `target` and `lib` compiler options control?
- What are generic defaults and when are they useful?
- What are phantom types and how do they relate to branding?
- What is contextual typing?
- What is literal type widening?
- What is the native TypeScript compiler port (TypeScript 7 / tsgo)?
- What do you do when TypeScript infers a generic type parameter too broadly or as `unknown`?
- What should teams expect from TypeScript 6.0?
- What TypeScript practices do you look for in code reviews?
HTML & CSS Core 20
- Most asked What is HTML?
- Most asked What is HTML5, and how is it different from HTML 4?
- Most asked What is semantic HTML, and why does it matter?
- Most asked What is the alt attribute for, and what makes good alt text?
- Most asked What input types and validation attributes did HTML5 add?
- Most asked What is ARIA, and what is the first rule of ARIA?
- Most asked What does <!DOCTYPE html> do?
- What goes in the head of an HTML document, and what goes in the body?
- What do the autocomplete and inputmode attributes do?
- What does the viewport meta tag do?
- What is structured data (JSON-LD), and why add it?
- What is the DOM, and how does the browser build it from HTML?
- What are data-* attributes for?
- What do the dialog element and the popover attribute provide?
- What does the sandbox attribute on an iframe do?
- What are resource hints such as preload and preconnect?
- What are HTML entities and when do you need them?
- What is the details element used for?
- What is the template element?
- What are web components?
Next.js Developer Core 30
- Most asked What is Next.js and what problems does it solve on top of React?
- Most asked What are the differences between the App Router and the Pages Router?
- Most asked What are Server Actions and how do you use them for mutations?
- Most asked What is Next.js middleware (renamed `proxy` in Next.js 16) and what should it be used for?
- Most asked What does `next/image` do?
- What are route groups, parallel routes and intercepting routes?
- What are `usePathname`, `useSearchParams` and `useParams`, and what's the Suspense caveat?
- What are the options for deploying a Next.js application?
- What is a Data Access Layer (DAL) and why is it recommended in Next.js?
- What security considerations apply specifically to Server Actions and Server Components?
- What is the RSC payload?
- What does `next/font` provide?
- What is `useOptimistic` and how does it work with Server Actions?
- What is Turbopack?
- What is Partial Prerendering (PPR) / Cache Components?
- What does the `'use cache'` directive do?
- What is the `after()` API in Next.js 15?
- What styling options work with the App Router and Server Components?
- What does `generateStaticParams` do and what is `dynamicParams`?
- What are route segment config options?
- What does Next.js do for accessibility, and what remains your job?
- What is `output: 'export'` and what are its limitations?
- What is the `next/form` component?
- What do the `server-only` and `client-only` packages do?
- What breaking changes should you expect when upgrading to Next.js 15?
- What are notable changes in Next.js 16?
- What is Draft Mode and how is it used with a headless CMS?
- What is required in the root layout of an App Router app?
- What is the React Compiler and how does it relate to Next.js?
- What do the symbols in `next build` output (○, ●, ƒ) mean?
Vue.js Developer Recommended 21
- Most asked What are composables, and why did they replace mixins?
- Most asked What security risks should Vue developers watch for?
- Most asked What are template refs, and why do you need nextTick?
- Most asked What are the main breaking changes when migrating from Vue 2 to Vue 3?
- What does <script setup> give you?
- What is Vue.js, and what does 'progressive framework' mean?
- What are shallowRef, shallowReactive and markRaw for?
- What router history modes exist, and what server configuration does each need?
- What are async components and Suspense?
- What is Teleport used for?
- What does KeepAlive do?
- What is a Vue plugin, and how do you write one?
- What are the pitfalls of deep watchers?
- What event modifiers does Vue provide?
- What is a writable computed, and when is it useful?
- What are fragments and attribute fallthrough in Vue 3?
- What role does Vite play in Vue development?
- What does defineExpose do?
- What does the `.value` unwrapping rule look like in templates, reactive objects and arrays?
- What are Vue's official style-guide rules you consider essential?
- What does v-memo do, and when would you use v-once?
Tailwind CSS Recommended 6
- Most asked What is Tailwind CSS and what does 'utility-first' mean?
- Most asked What changed in Tailwind CSS v4 compared with v3?
- What are container queries in Tailwind and when do you use them?
- What are arbitrary values and when should you avoid them?
- What is Preflight and how do you style rich text from a CMS?
- What are good practices for writing Tailwind in a team?
Web Security & WAF Recommended 22
- Most asked What is the OWASP Top 10 and which risks does it currently highlight?
- Most asked What is Cross-Site Scripting (XSS) and how do you prevent it?
- Most asked What is SQL injection and how do you prevent it?
- Most asked What is CSRF and how do you defend against it?
- Most asked What is a Web Application Firewall (WAF), and what can and can't it do?
- Most asked What is SSRF (Server-Side Request Forgery) and how do you prevent it?
- What is Content-Security-Policy and how do you roll it out?
- What is CORS, and what are common CORS misconfigurations?
- What are common security misconfigurations in web deployments?
- What are insecure deserialization vulnerabilities?
- What is clickjacking and how do you prevent it?
- What are best practices for TLS/HTTPS?
- What is threat modeling and how do you run one?
- What is an open redirect vulnerability?
- What is command injection and how do you prevent it?
- What is path traversal and how do you prevent it?
- What are software and data integrity failures?
- What are common cryptographic failures?
- What new security risks do LLM-powered features introduce?
- What does the OWASP API Security Top 10 add beyond the web Top 10?
- What is XXE (XML External Entity) injection?
- What is subdomain takeover?
Performance & Scalability Recommended 9
- Most asked What are the most common database-related performance problems?
- What are common concurrency bottlenecks in web applications?
- What are Core Web Vitals and how do you improve them?
- What is the 'chatty API' problem and how do you fix it?
- What is load shedding?
- What is graceful degradation?
- What changes when you scale to multiple regions?
- What are cold starts and how do you reduce them?
- What are common mistakes when benchmarking?
Testing Recommended 12
- Most asked What is the test pyramid, and is it still relevant?
- What is test-driven development (TDD) and when is it useful?
- What is contract testing?
- What is contract testing, and when would you use it?
- What is exploratory testing, and how do you do it well?
- What is property-based testing?
- What are snapshot tests, and what are their risks?
- What are ephemeral (preview) environments and why use them?
- What is chaos engineering?
- What should API tests verify?
- What are smoke tests?
- What is mutation testing?