Frontend track

React interview questions and answers

Panel-ready Frontend Master questions for freshers and experienced developers. Practice at Coding Cadre in Faridabad, or Online from Delhi NCR.

1 Moderate React Frontend

How does React reconciliation work?

Short take Full answer on next page

Simple meaning

React compares the new element tree with the previous one by type and key.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
2 Moderate React Frontend

What happens if you use the array index as a key?

Short take Full answer on next page

Simple meaning

Inserting or reordering makes React reuse the wrong component instance, so inputs keep the wrong text.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
5 Moderate React Frontend

When does React.memo actually help?

Short take Full answer on next page

Simple meaning

It skips a re-render when props are shallow-equal.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
7 Moderate React Frontend

When is Context a bad fit compared with Redux?

Short take Full answer on next page

Simple meaning

Context re-renders all consumers when the provider value changes, so putting a rapidly updating cart in a huge provider is costly.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
9 Moderate React Frontend

What are the rules of hooks?

Short take Full answer on next page

Simple meaning

Only call hooks at the top level of a React function, not in loops or conditions, so the order stays stable.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
11 Moderate Redux Frontend

How does Redux data flow work?

Short take Full answer on next page

Simple meaning

The UI dispatches an action object.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
12 Moderate Redux Frontend

What is a reducer and why must it be pure?

Short take Full answer on next page

Simple meaning

A reducer is a function of previous state and action that returns the next state.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
13 Moderate Redux Frontend

What is Redux Toolkit versus classic Redux?

Short take Full answer on next page

Simple meaning

Classic Redux needed hand-written action types, switch statements, and spread copies.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
15 Moderate Next.js Frontend

What is a hydration mismatch?

Short take Full answer on next page

Simple meaning

The HTML from the server does not equal what React renders on the client for the first pass.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
17 Moderate React Frontend

What is a custom hook and when would you write one?

Short take Full answer on next page

Simple meaning

A custom hook is a function starting with use that calls other hooks, so I can reuse stateful logic.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
18 Moderate React Frontend

How does React batch state updates?

Short take Full answer on next page

Simple meaning

React 18 batches setState in timeouts, promises, and native events so one event loop turn can become one render.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
19 Moderate Redux Frontend

What is middleware in Redux used for?

Short take Full answer on next page

Simple meaning

Middleware wraps dispatch so I can log, crash-report, or run async.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
20 Moderate Next.js Frontend

What is a layout in the App Router?

Short take Full answer on next page

Simple meaning

A layout wraps child routes and does not remount on navigation inside that segment, so shared chrome stays mounted.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
Page 1 of 2 Next
Chat with us