Web Spiders interview experience Real time questions & tips from candidates to crack your interview

React developer

Web Spiders
upvote
share-icon
1 rounds | 8 Coding problems

Interview preparation journey

expand-icon
Journey
This journey taught me that learning step by step steadily builds confidence. With the guidance and structured learning path at Coding Ninjas, I was able to grow my skills and knowledge consistently, and I’m proud of the progress I’ve made along the way.
Preparation
Topics: React, JavaScript, DSA
Application process
Where: Coding Ninjas Placement Cell
Eligibility: NA, (Salary range: 3.5-4 LPA)

Interview rounds

01
Round
Easy
Online Coding Interview
Duration
Interview date14 Apr 2025
Coding problem8

1. Understanding the useEffect Hook in React

Explain what the useEffect hook does in React. Describe how it helps manage side effects in functional components, and provide examples of using it with dependencies, without dependencies, and with an empty dependency array.

2. Using the useState Hook in React

Explain how the useState hook is used in a React application to manage state within functional components. Describe how updating state triggers a re-render and updates the UI accordingly. Provide an example to illustrate how useState works in practice.

3. Fetching Data from an API in React

Explain how you would fetch data from an API in a React application. Walk through where and how the API call should be placed inside a React component, how to handle loading and error states, and how the fetched data can be stored in state and displayed in the UI. Provide an example using hooks like useEffect and useState.

4. Implementing Routing in React with React Router DOM

Explain how to implement routing in a React application using React Router DOM. Walk through the process of setting up routes, defining components for different paths, and navigating between them. Also describe the difference between <BrowserRouter>, <Routes>, and <Route>, and provide a simple code example that demonstrates navigation between multiple pages

5. Storing User Data in Firebase and Local Storage

Explain how you would store user data using Firebase (e.g., Firestore or Realtime Database) and local storage in a React application.

  1. Walk through the steps of integrating Firebase, writing data to the database, and retrieving it.
  2. Describe scenarios where Firebase storage is preferred (e.g., persistent, real-time, cloud-synced data).
  3. Contrast it with using localStorage in the browser for temporary or client-side only data (e.g., authentication tokens, user preferences).
    Provide a simple example for both approaches.

6. Setting Up Navigation Routes in React JS

Explain how you would set up navigation in a React JS project using React Router DOM.

  1. Start with installing the package (npm install react-router-dom).
  2. Describe how to wrap the app in a <BrowserRouter>.
  3. Show how to define routes using <Routes> and <Route>.
  4. Demonstrate how to navigate between pages using <Link> or useNavigate.
  5. Mention nested routes and a fallback route (*) for unmatched paths.

Provide a small example with Home, About, and Contact pages to show the setup in action.

7. JavaScript Fundamentals and Core DSA Concepts

What’s the difference between == and === operators in JavaScript? How do linked lists and arrays differ as data structures? What does recursion mean in programming, and how does it work? Could you describe what stacks and queues are and how they’re used?

8. CSS Fundamentals and Responsive Design

  1. Can you explain the CSS box model and its components?
  2. What techniques do you use to make a webpage responsive across devices?
  3. What are media queries, and how do you use them in CSS?

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

What is recursion?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
4 rounds | 8 problems
Interviewed by Amazon
8518 views
0 comments
0 upvotes
Analytics Consultant
3 rounds | 10 problems
Interviewed by ZS
907 views
0 comments
0 upvotes
company logo
SDE - Intern
1 rounds | 3 problems
Interviewed by Amazon
3320 views
0 comments
0 upvotes
company logo
SDE - 2
4 rounds | 6 problems
Interviewed by Expedia Group
2580 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
React developer
3 rounds | 19 problems
Interviewed by Ernst & Young (EY)
4501 views
0 comments
0 upvotes