React Frontend Developer Interview Questions & Answers
40 questions for React Frontend Developer interviews — 24 easy, 15 medium, 1 hard.
About the React Frontend Developer role
A React developer builds the user interface of web applications. The role involves turning designs into reusable components, managing state, calling REST APIs, handling forms and validation, and keeping pages fast and accessible on all devices. Java full stack learners who enjoy UI work often start here and later move across the stack, because understanding the backend makes API integration easier.
Build a login form with basic validation in React.
Show answer
Use map, filter and reduce to get the total value of in-stock products.
Show answer
What is the biggest full stack project you have built?
Show answer
You need H2 for local development, MySQL for testing and PostgreSQL in production. How do you configure this?
Show answer
How do code splitting and lazy loading work in React?
Show answer
What is React and what is the virtual DOM?
Show answer
Why should we hire you as a Java full stack developer?
Show answer
A report job builds a large string with + inside a loop and is very slow. What do you change?
Show answer
Why are semantic HTML and accessibility important?
Show answer
What is the difference between persist and merge, and between save and saveAndFlush?
Show answer
What is the difference between == and === in JavaScript?
Show answer
Why does React need a key prop when rendering lists?
Show answer
What is event delegation and why is it useful?
Show answer
Your component keeps re-rendering in an infinite loop after calling an API. What is wrong?
Show answer
Implement a cart counter using useReducer.
Show answer
Why is String immutable in Java?
Show answer
Which HTTP methods are safe and which are idempotent?
Show answer
What is the difference between checked and unchecked exceptions?
Show answer
After calling setCount(count + 1), console.log(count) still shows the old value. Why?
Show answer
Write a query to find the second highest salary from an employees table.
Show answer
When would you use Flexbox and when CSS Grid?
Show answer
What is the difference between localStorage, sessionStorage and cookies?
Show answer
What is the difference between props and state?
Show answer
When would you use the Context API and when a state library like Redux Toolkit or Zustand?
Show answer
What is the difference between Comparable and Comparator?
Show answer
Explain the JavaScript event loop, including microtasks and macrotasks.
Show answer
What is the difference between var, let and const?
Show answer
You are passing the same user prop through five levels of components. What would you do?
Show answer
How do you take feedback from a senior on your React code?
Show answer
Users must upload files up to 200 MB. How do you design the upload API?
Show answer
How do you handle a Git merge conflict when working in a team?
Show answer
What is the difference between JPA, Hibernate and Spring Data JPA?
Show answer
When should you use useMemo and useCallback?
Show answer
What is hoisting in JavaScript?
Show answer
The layout looks fine on desktop but breaks on mobile with horizontal scrolling. How do you debug it?
Show answer
Compare promises and async/await.
Show answer
Fetch a list of products from an API and show loading and error states.
Show answer
What is a closure in JavaScript? Give a practical use.
Show answer
Centre a div horizontally and vertically using CSS.
Show answer
Frequently asked questions
What does a React Frontend Developer do?
A React developer builds the user interface of web applications. The role involves turning designs into reusable components, managing state, calling REST APIs, handling forms and validation, and keeping pages fast and accessible on all devices. Java full stack learners who enjoy UI work often start here and later move across the stack, because understanding the backend makes API integration easier.
Which skills are tested in a React Frontend Developer interview?
Expect questions on React and hooks, JavaScript ES2015+, Responsive CSS, API integration, Web performance. Most rounds also ask you to explain a project and solve one practical problem live.
How do I prepare for a React Frontend Developer interview?
Revise React Frontend, JavaScript, HTML and CSS first using the topic sheets, practise the questions on this page aloud, then do one full mock interview to practise timing.