nextRound
TechnologiesCoding ProblemsBookmarksLearning Paths
nextRound
TechnologiesCoding ProblemsBookmarksLearning Paths
nextRound

AI-powered interview preparation platform. Practice with curated questions, mock interviews, and personalized learning paths to crack your dream tech interview.

Quick Links

  • Technologies
  • Saved Questions
  • Pricing

Company

  • About Us
  • Contact Us

Legal

  • Privacy Policy
  • Terms of Use

© 2026 nextRound. All rights reserved.

TOPIC OVERVIEW

react/Components

The reusable building blocks React apps are assembled from.

10 QuestionsIntermediateHigh Priority ~10 min read

A component, an element, and an instance are three related but distinct things that get used interchangeably in casual conversation. A component is the definition — a function or class describing how to render something. An element is the lightweight object created when that component is used in JSX, describing what should render but not actually rendering anything itself. An instance is what React creates and tracks internally when a class component actually gets mounted (function components don't have a traditional 'instance' in the same sense).

React explicitly favors composition over inheritance for building complex UI out of simple pieces — rather than a Button extending a BaseButton class, you build a Button that accepts children or renders other components, and complex UI emerges from composing small, focused components together. The children prop is the clearest expression of this: it lets a component (like a Card or Modal wrapper) render arbitrary content passed into it without knowing anything about what that content is.

What you'll walk away knowing

The distinction between a component (the definition), an element (its description), and an instance
Why React favors composition over inheritance, and what that looks like in practice
The difference between a component being called (as a function) and being rendered by React
How the children prop enables composition patterns like layout wrappers and slots
1What are Compound composition and component composition?Intermediate2What are the scenarios where using a class component is preferred over a function components?Intermediate3What are controlled components?Intermediate4What happens when a react component returns null or renders null?Beginner5Why is it necessary to capitalize the components name?Beginner6What are stateless and stateful components?Intermediate7What does it mean for a component to be mounted in React?Beginner8What's the difference between a smart component and a dumb component?Intermediate9What is the difference between a component and a container in React Redux?Intermediate10List built in components in react.Beginner11What is a component?Intermediate12DIscuss various types of components?Intermediate13Describe pure components.Intermediate14What’s the difference between an Element and a Component in React?Intermediate
All Topics
1
Basics
JSX
State and Props
Components
Function Components
2
Virtual DOM
Reconciliation
Class Components
Lifecycle functions
3
Hooks
useState
useReducer
useMemo
useContext
useCallback
useEffect
Custom Hooks
New Hooks
4
Code Sharing
HOC
Refs
Data Sharing
Events
Context API
5
Redux
Router
CSR-SSR
React APIs
ReactDOM
Strict Mode
6
Performance Optimisation
Security
Sharethis topic

Share via WhatsApp, X, Facebook, LinkedIn or copy link. Open Graph preview enabled.