InterviewTreedInterviewTreed
All learning paths

Programming & Frameworks

React & TypeScript

Prepare for React and TypeScript interviews, covering components, hooks, state management, TypeScript types, performance optimization, frontend architecture, and testing.

Your learning roadmap

Explore the key concepts

Use these subtopics as a study checklist. Start with the fundamentals, then progress to practical examples and interview preparation.

React fundamentals

Learn the core concepts of React, including component-based development, declarative UI, props, state, and building interactive user interfaces.

Start learning

React architecture and virtual DOM

Understand React's component architecture and virtual DOM, including how React represents UI changes and updates the browser DOM efficiently.

Start learning

JSX and TSX

Learn JSX and TSX syntax for writing UI markup inside JavaScript and TypeScript, including expressions, attributes, fragments, and type-aware components.

Start learning

Functional components

Build reusable functional components using JavaScript or TypeScript and understand component inputs, rendering, composition, and modern React patterns.

Start learning

Class components

Understand class-based React components, including render methods, constructors, state, lifecycle methods, and their relationship to modern functional components.

Start learning

Props and state

Understand how props pass data between components and how state manages changing component data and drives UI updates.

Start learning

Component lifecycle

Explore component lifecycle concepts, including mounting, updating, and unmounting, and understand how lifecycle behavior maps to modern React Hooks.

Start learning

Component composition

Build complex interfaces by combining smaller components, using children, reusable layouts, and composition instead of unnecessary inheritance.

Start learning

Controlled and uncontrolled components

Compare controlled and uncontrolled components and learn how React state and DOM references manage form values and user input.

Start learning

Conditional rendering

Render different UI elements based on application state, props, and conditions using logical operators, ternary expressions, and conditional components.

Start learning

Lists and keys

Render dynamic collections with map() and understand how stable keys help React identify, update, and reconcile list elements.

Start learning

Event handling

Handle user interactions in React using event handlers, synthetic events, event parameters, and TypeScript event types.

Start learning

Forms and form validation

Build interactive React forms, manage field values, validate user input, display errors, and handle form submission and accessibility requirements.

Start learning

React Hooks fundamentals

Understand React Hooks as a way to use state and other React features in functional components, including their purpose and common usage patterns.

Start learning

useState

Manage component state with useState, initialize values, update state safely, and understand how state updates trigger component rendering.

Start learning

useEffect

Synchronize components with external systems using useEffect, including data fetching, subscriptions, cleanup functions, and dependency management.

Start learning

useContext

Access shared values from React Context using useContext and understand how context helps avoid passing props through multiple component levels.

Start learning

useReducer

Manage complex state transitions using useReducer, reducer functions, actions, and predictable state update patterns.

Start learning

useRef

Use useRef to preserve mutable values between renders and access DOM elements without triggering additional component renders.

Start learning

useMemo

Optimize expensive calculations with useMemo and understand dependency arrays, cached values, and when memoization is beneficial.

Start learning

useCallback

Memoize callback functions with useCallback and understand how stable function references can help optimize child component rendering.

Start learning

Custom hooks

Create reusable custom Hooks to extract component logic, share stateful behavior, and organize complex functionality across React components.

Start learning

Rules of Hooks

Understand the Rules of Hooks, including calling Hooks only at the top level of React functions and following consistent execution order.

Start learning

Context API

Share application-wide data through React's Context API, create providers, consume context values, and manage common cross-component state.

Start learning

State management fundamentals

Explore local, shared, and global state management approaches and understand how to organize application state as React projects grow.

Start learning

Prop drilling and component communication

Understand prop drilling and techniques for communication between parent, child, and sibling components using callbacks, context, and composition.

Start learning

Redux fundamentals

Learn Redux architecture, including the store, actions, reducers, dispatching, and predictable state updates across an application.

Start learning

Redux Toolkit

Simplify Redux development with Redux Toolkit using configureStore, createSlice, createAsyncThunk, and recommended state management practices.

Start learning

Zustand fundamentals

Manage React application state with Zustand by creating lightweight stores, defining actions, selecting state, and subscribing to updates.

Start learning

React Router

Implement client-side navigation using React Router and understand route configuration, navigation components, URL parameters, and route matching.

Start learning

Routing and nested routes

Organize application navigation with nested routes, layout routes, outlet components, and shared page structures using React Router.

Start learning

Dynamic and protected routes

Build dynamic routes with URL parameters and protect application pages using authentication checks, authorization rules, and route guards.

Start learning

Data fetching in React

Fetch and display remote data in React applications while managing loading states, errors, cancellation, and component lifecycle considerations.

Start learning

Fetch API and Axios

Make HTTP requests using the native Fetch API and Axios, configure request headers, handle responses, and manage network errors.

Start learning

Server state management

Understand server state as remotely managed application data and explore caching, synchronization, invalidation, retries, and background updates.

Start learning

React Query and TanStack Query

Manage asynchronous server data using TanStack Query, including queries, mutations, caching, pagination, invalidation, and automatic refetching.

Start learning

Error boundaries

Catch rendering errors in React component trees using error boundaries and implement fallback interfaces and application-level error recovery.

Start learning

Suspense and lazy loading

Use React Suspense and lazy loading to load components or supported asynchronous resources on demand and provide fallback UI during loading.

Start learning

Code splitting

Reduce initial JavaScript bundle size through code splitting, dynamic imports, route-based loading, and lazy component delivery.

Start learning

React rendering behavior

Understand when React components render, how state and props affect rendering, and how parent-child updates influence the component tree.

Start learning

Reconciliation and diffing

Explore React reconciliation and its diffing process, including element identity, keys, component types, and efficient UI updates.

Start learning

React performance optimization

Improve React application performance through profiling, rendering analysis, efficient state placement, memoization, and optimized component architecture.

Start learning

Memoization with React.memo

Use React.memo to memoize functional components and understand shallow prop comparisons, custom comparison functions, and rendering trade-offs.

Start learning

Avoiding unnecessary re-renders

Identify unnecessary component renders and reduce them through stable props, appropriate state ownership, memoization, and component restructuring.

Start learning

React Strict Mode

Understand React Strict Mode development checks and how it helps identify unsafe lifecycle behavior, impure rendering, and missing effect cleanup.

Start learning

React portals

Render React components outside their parent DOM hierarchy using portals, including common use cases such as modals, dialogs, and tooltips.

Start learning

Higher-order components

Understand higher-order components as functions that enhance existing components with reusable behavior, shared logic, and additional props.

Start learning

Render props pattern

Use the render props pattern to share component logic by passing functions that determine what UI should be rendered.

Start learning

Compound components

Design compound components that coordinate related child components through shared state and context to create flexible reusable APIs.

Start learning

React testing fundamentals

Understand React testing strategies and learn how to verify component rendering, user interactions, application behavior, and expected outcomes.

Start learning

React Testing Library

Test React components with React Testing Library by querying accessible elements, simulating user interactions, and asserting visible application behavior.

Start learning

Jest and Vitest

Configure Jest and Vitest for frontend testing and understand test execution, assertions, mocking, setup files, and coverage reporting.

Start learning

Component and integration testing

Write component and integration tests to verify UI behavior, component interactions, form workflows, and communication with application services.

Start learning

Accessibility in React applications

Build accessible React interfaces using semantic HTML, keyboard navigation, ARIA attributes, focus management, and screen-reader-friendly interactions.

Start learning

React security best practices

Secure React applications by handling untrusted input safely, preventing injection vulnerabilities, managing authentication, and protecting sensitive data.

Start learning

Frontend application architecture

Organize frontend applications using reusable components, feature-based folders, shared services, routing, state management, and maintainable boundaries.

Start learning

React with REST APIs

Integrate React interfaces with REST APIs by managing HTTP requests, response data, authentication, error handling, and asynchronous UI states.

Start learning

React with ASP.NET Core Web APIs

React with ASP.NET Core Web APIs: Learn its key concepts, practical implementation, architecture, and interview considerations.

Start learning

React with Next.js

React with Next.js: Learn its key concepts, practical implementation, architecture, and interview considerations.

Start learning

Server-side rendering and client-side rendering

Compare server-side rendering and client-side rendering and understand their effects on performance, SEO, hydration, and user experience.

Start learning

TypeScript fundamentals

Learn TypeScript's core features, including static typing, compiler behavior, type annotations, interfaces, and safer JavaScript development.

Start learning

Static typing and type inference

Understand static typing and type inference in TypeScript and learn how the compiler determines types and detects incompatible operations.

Start learning

Primitive and complex types

Work with TypeScript primitive types and complex structures, including arrays, tuples, objects, functions, and built-in type definitions.

Start learning

Type aliases and interfaces

Define reusable object and function contracts using type aliases and interfaces, and understand their differences, extension, and declaration merging.

Start learning

Union and intersection types

Combine TypeScript types using unions and intersections to represent alternative values and compose complex object structures.

Start learning

Literal types

Use string, numeric, and boolean literal types to restrict values to specific constants and build more precise type definitions.

Start learning

Enums

Define named sets of related constants using numeric and string enums and understand enum usage, reverse mappings, and alternatives.

Start learning

Type assertions

Use type assertions to tell TypeScript how to interpret a value and understand the differences between assertions, conversions, and runtime checks.

Start learning

Type narrowing and type guards

Narrow broad types using typeof, instanceof, equality checks, discriminant properties, and custom type guard functions.

Start learning

Optional and readonly properties

Define optional and readonly properties in TypeScript and understand how they affect object structure, assignment, and compile-time safety.

Start learning

Function types

Define function parameter and return types, optional and rest parameters, callback signatures, and function overloads in TypeScript.

Start learning

Generics

Create reusable type-safe functions, classes, and interfaces using generics that preserve relationships between input and output types.

Start learning

Generic constraints

Restrict generic type parameters with extends constraints and use keyof and other type relationships to build safer reusable abstractions.

Start learning

Utility types

Transform existing TypeScript types using utilities such as Partial, Required, Pick, Omit, Record, ReturnType, and Parameters.

Start learning

Mapped types

Create new types by iterating over existing property keys and modifying property names, optionality, and readonly behavior.

Start learning

Conditional types

Build conditional type expressions using extends and infer to select or extract types based on compile-time relationships.

Start learning

keyof and typeof operators

Use keyof to obtain object property keys and typeof to derive types from existing values, variables, and expressions.

Start learning

Indexed access types

Access property types through indexed access expressions and create reusable types based on object keys and array element types.

Start learning

Discriminated unions

Model related data variants with discriminated unions and use shared literal properties to achieve reliable type narrowing.

Start learning

Advanced TypeScript patterns

Explore advanced TypeScript techniques such as conditional inference, recursive types, template literal types, and type composition for complex applications.

Start learning

Classes and access modifiers

Define TypeScript classes with typed properties and methods and use public, private, protected, and readonly modifiers to control access.

Start learning

Abstract classes and inheritance

Use abstract classes and inheritance to establish shared contracts, reuse implementation, and enforce required behavior in derived classes.

Start learning

Modules and namespaces

Organize TypeScript code using modules, named and default exports, imports, and namespaces, and understand their differences and use cases.

Start learning

TypeScript configuration and tsconfig

Configure TypeScript compiler behavior through tsconfig.json, including strictness, module resolution, target versions, path aliases, and build options.

Start learning

TypeScript with React components

Build strongly typed React components with TypeScript and understand component definitions, JSX typing, reusable props, and component return types.

Start learning

Typing props and state

Define TypeScript interfaces and types for React component props and state, including optional properties, children, and state initialization.

Start learning

Typing React Hooks

Use TypeScript with React Hooks by typing useState, useReducer, useContext, useRef, and custom Hooks with accurate generic types.

Start learning

Typing events and forms

Type React event handlers and form elements using React event types and learn how to safely handle input, change, submit, and keyboard events.

Start learning

Typing API responses

Define TypeScript interfaces and types for API request and response data, handle optional fields, and validate data received from external services.

Start learning

Reusable generic React components

Build reusable generic React components that support multiple data types while preserving type safety for props, callbacks, and rendered values.

Start learning

TypeScript testing

Write type-safe frontend tests and understand how TypeScript integrates with test frameworks, mocks, fixtures, and testing utilities.

Start learning

Frontend build tools and tooling

Explore frontend development tooling such as Vite, Webpack, ESLint, Prettier, package managers, and TypeScript build integrations.

Start learning

Production React and TypeScript best practices

Prepare React and TypeScript applications for production through maintainable architecture, strict typing, performance optimization, testing, security, and reliable builds.

Start learning

Practice & revise

Interview questions

Practice interview questions with answers, key points, and practical examples.

Test your knowledge

Explore 100 questions for this topic, covering concepts, practical examples, and interview scenarios.

Browse 100 questions

Keep learning step by step

Work through the concepts, practice explaining them in your own words, and use interview questions to check your understanding.

Explore another learning path