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 learningReact 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 learningJSX and TSX
Learn JSX and TSX syntax for writing UI markup inside JavaScript and TypeScript, including expressions, attributes, fragments, and type-aware components.
Start learningFunctional components
Build reusable functional components using JavaScript or TypeScript and understand component inputs, rendering, composition, and modern React patterns.
Start learningClass components
Understand class-based React components, including render methods, constructors, state, lifecycle methods, and their relationship to modern functional components.
Start learningProps and state
Understand how props pass data between components and how state manages changing component data and drives UI updates.
Start learningComponent lifecycle
Explore component lifecycle concepts, including mounting, updating, and unmounting, and understand how lifecycle behavior maps to modern React Hooks.
Start learningComponent composition
Build complex interfaces by combining smaller components, using children, reusable layouts, and composition instead of unnecessary inheritance.
Start learningControlled and uncontrolled components
Compare controlled and uncontrolled components and learn how React state and DOM references manage form values and user input.
Start learningConditional rendering
Render different UI elements based on application state, props, and conditions using logical operators, ternary expressions, and conditional components.
Start learningLists and keys
Render dynamic collections with map() and understand how stable keys help React identify, update, and reconcile list elements.
Start learningEvent handling
Handle user interactions in React using event handlers, synthetic events, event parameters, and TypeScript event types.
Start learningForms and form validation
Build interactive React forms, manage field values, validate user input, display errors, and handle form submission and accessibility requirements.
Start learningReact 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 learninguseState
Manage component state with useState, initialize values, update state safely, and understand how state updates trigger component rendering.
Start learninguseEffect
Synchronize components with external systems using useEffect, including data fetching, subscriptions, cleanup functions, and dependency management.
Start learninguseContext
Access shared values from React Context using useContext and understand how context helps avoid passing props through multiple component levels.
Start learninguseReducer
Manage complex state transitions using useReducer, reducer functions, actions, and predictable state update patterns.
Start learninguseRef
Use useRef to preserve mutable values between renders and access DOM elements without triggering additional component renders.
Start learninguseMemo
Optimize expensive calculations with useMemo and understand dependency arrays, cached values, and when memoization is beneficial.
Start learninguseCallback
Memoize callback functions with useCallback and understand how stable function references can help optimize child component rendering.
Start learningCustom hooks
Create reusable custom Hooks to extract component logic, share stateful behavior, and organize complex functionality across React components.
Start learningRules of Hooks
Understand the Rules of Hooks, including calling Hooks only at the top level of React functions and following consistent execution order.
Start learningContext API
Share application-wide data through React's Context API, create providers, consume context values, and manage common cross-component state.
Start learningState management fundamentals
Explore local, shared, and global state management approaches and understand how to organize application state as React projects grow.
Start learningProp drilling and component communication
Understand prop drilling and techniques for communication between parent, child, and sibling components using callbacks, context, and composition.
Start learningRedux fundamentals
Learn Redux architecture, including the store, actions, reducers, dispatching, and predictable state updates across an application.
Start learningRedux Toolkit
Simplify Redux development with Redux Toolkit using configureStore, createSlice, createAsyncThunk, and recommended state management practices.
Start learningZustand fundamentals
Manage React application state with Zustand by creating lightweight stores, defining actions, selecting state, and subscribing to updates.
Start learningReact Router
Implement client-side navigation using React Router and understand route configuration, navigation components, URL parameters, and route matching.
Start learningRouting and nested routes
Organize application navigation with nested routes, layout routes, outlet components, and shared page structures using React Router.
Start learningDynamic and protected routes
Build dynamic routes with URL parameters and protect application pages using authentication checks, authorization rules, and route guards.
Start learningData fetching in React
Fetch and display remote data in React applications while managing loading states, errors, cancellation, and component lifecycle considerations.
Start learningFetch API and Axios
Make HTTP requests using the native Fetch API and Axios, configure request headers, handle responses, and manage network errors.
Start learningServer state management
Understand server state as remotely managed application data and explore caching, synchronization, invalidation, retries, and background updates.
Start learningReact Query and TanStack Query
Manage asynchronous server data using TanStack Query, including queries, mutations, caching, pagination, invalidation, and automatic refetching.
Start learningError boundaries
Catch rendering errors in React component trees using error boundaries and implement fallback interfaces and application-level error recovery.
Start learningSuspense 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 learningCode splitting
Reduce initial JavaScript bundle size through code splitting, dynamic imports, route-based loading, and lazy component delivery.
Start learningReact rendering behavior
Understand when React components render, how state and props affect rendering, and how parent-child updates influence the component tree.
Start learningReconciliation and diffing
Explore React reconciliation and its diffing process, including element identity, keys, component types, and efficient UI updates.
Start learningReact performance optimization
Improve React application performance through profiling, rendering analysis, efficient state placement, memoization, and optimized component architecture.
Start learningMemoization with React.memo
Use React.memo to memoize functional components and understand shallow prop comparisons, custom comparison functions, and rendering trade-offs.
Start learningAvoiding unnecessary re-renders
Identify unnecessary component renders and reduce them through stable props, appropriate state ownership, memoization, and component restructuring.
Start learningReact Strict Mode
Understand React Strict Mode development checks and how it helps identify unsafe lifecycle behavior, impure rendering, and missing effect cleanup.
Start learningReact portals
Render React components outside their parent DOM hierarchy using portals, including common use cases such as modals, dialogs, and tooltips.
Start learningHigher-order components
Understand higher-order components as functions that enhance existing components with reusable behavior, shared logic, and additional props.
Start learningRender props pattern
Use the render props pattern to share component logic by passing functions that determine what UI should be rendered.
Start learningCompound components
Design compound components that coordinate related child components through shared state and context to create flexible reusable APIs.
Start learningReact testing fundamentals
Understand React testing strategies and learn how to verify component rendering, user interactions, application behavior, and expected outcomes.
Start learningReact Testing Library
Test React components with React Testing Library by querying accessible elements, simulating user interactions, and asserting visible application behavior.
Start learningJest and Vitest
Configure Jest and Vitest for frontend testing and understand test execution, assertions, mocking, setup files, and coverage reporting.
Start learningComponent and integration testing
Write component and integration tests to verify UI behavior, component interactions, form workflows, and communication with application services.
Start learningAccessibility in React applications
Build accessible React interfaces using semantic HTML, keyboard navigation, ARIA attributes, focus management, and screen-reader-friendly interactions.
Start learningReact security best practices
Secure React applications by handling untrusted input safely, preventing injection vulnerabilities, managing authentication, and protecting sensitive data.
Start learningFrontend application architecture
Organize frontend applications using reusable components, feature-based folders, shared services, routing, state management, and maintainable boundaries.
Start learningReact with REST APIs
Integrate React interfaces with REST APIs by managing HTTP requests, response data, authentication, error handling, and asynchronous UI states.
Start learningReact with ASP.NET Core Web APIs
React with ASP.NET Core Web APIs: Learn its key concepts, practical implementation, architecture, and interview considerations.
Start learningReact with Next.js
React with Next.js: Learn its key concepts, practical implementation, architecture, and interview considerations.
Start learningServer-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 learningTypeScript fundamentals
Learn TypeScript's core features, including static typing, compiler behavior, type annotations, interfaces, and safer JavaScript development.
Start learningStatic typing and type inference
Understand static typing and type inference in TypeScript and learn how the compiler determines types and detects incompatible operations.
Start learningPrimitive and complex types
Work with TypeScript primitive types and complex structures, including arrays, tuples, objects, functions, and built-in type definitions.
Start learningType aliases and interfaces
Define reusable object and function contracts using type aliases and interfaces, and understand their differences, extension, and declaration merging.
Start learningUnion and intersection types
Combine TypeScript types using unions and intersections to represent alternative values and compose complex object structures.
Start learningLiteral types
Use string, numeric, and boolean literal types to restrict values to specific constants and build more precise type definitions.
Start learningEnums
Define named sets of related constants using numeric and string enums and understand enum usage, reverse mappings, and alternatives.
Start learningType assertions
Use type assertions to tell TypeScript how to interpret a value and understand the differences between assertions, conversions, and runtime checks.
Start learningType narrowing and type guards
Narrow broad types using typeof, instanceof, equality checks, discriminant properties, and custom type guard functions.
Start learningOptional and readonly properties
Define optional and readonly properties in TypeScript and understand how they affect object structure, assignment, and compile-time safety.
Start learningFunction types
Define function parameter and return types, optional and rest parameters, callback signatures, and function overloads in TypeScript.
Start learningGenerics
Create reusable type-safe functions, classes, and interfaces using generics that preserve relationships between input and output types.
Start learningGeneric constraints
Restrict generic type parameters with extends constraints and use keyof and other type relationships to build safer reusable abstractions.
Start learningUtility types
Transform existing TypeScript types using utilities such as Partial, Required, Pick, Omit, Record, ReturnType, and Parameters.
Start learningMapped types
Create new types by iterating over existing property keys and modifying property names, optionality, and readonly behavior.
Start learningConditional types
Build conditional type expressions using extends and infer to select or extract types based on compile-time relationships.
Start learningkeyof and typeof operators
Use keyof to obtain object property keys and typeof to derive types from existing values, variables, and expressions.
Start learningIndexed access types
Access property types through indexed access expressions and create reusable types based on object keys and array element types.
Start learningDiscriminated unions
Model related data variants with discriminated unions and use shared literal properties to achieve reliable type narrowing.
Start learningAdvanced TypeScript patterns
Explore advanced TypeScript techniques such as conditional inference, recursive types, template literal types, and type composition for complex applications.
Start learningClasses and access modifiers
Define TypeScript classes with typed properties and methods and use public, private, protected, and readonly modifiers to control access.
Start learningAbstract classes and inheritance
Use abstract classes and inheritance to establish shared contracts, reuse implementation, and enforce required behavior in derived classes.
Start learningModules and namespaces
Organize TypeScript code using modules, named and default exports, imports, and namespaces, and understand their differences and use cases.
Start learningTypeScript configuration and tsconfig
Configure TypeScript compiler behavior through tsconfig.json, including strictness, module resolution, target versions, path aliases, and build options.
Start learningTypeScript with React components
Build strongly typed React components with TypeScript and understand component definitions, JSX typing, reusable props, and component return types.
Start learningTyping props and state
Define TypeScript interfaces and types for React component props and state, including optional properties, children, and state initialization.
Start learningTyping React Hooks
Use TypeScript with React Hooks by typing useState, useReducer, useContext, useRef, and custom Hooks with accurate generic types.
Start learningTyping 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 learningTyping API responses
Define TypeScript interfaces and types for API request and response data, handle optional fields, and validate data received from external services.
Start learningReusable generic React components
Build reusable generic React components that support multiple data types while preserving type safety for props, callbacks, and rendered values.
Start learningTypeScript testing
Write type-safe frontend tests and understand how TypeScript integrates with test frameworks, mocks, fixtures, and testing utilities.
Start learningFrontend build tools and tooling
Explore frontend development tooling such as Vite, Webpack, ESLint, Prettier, package managers, and TypeScript build integrations.
Start learningProduction 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 learningPractice & 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.
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