Premium Employer

i

This company page is being actively managed by Infosys Team. If you also belong to the team, you can get access from here

Infosys Verified Tick Work with us arrow

Compare button icon Compare button icon Compare

Filter interviews by

Infosys React Js Frontend Developer Interview Questions and Answers

Updated 26 Jun 2025

31 Interview questions

A React Js Frontend Developer was asked 2mo ago
Q. What is a fragment in React?
Ans. 

Fragments in React allow grouping multiple elements without adding extra nodes to the DOM.

  • Fragments are used to return multiple elements from a component without wrapping them in a div.

  • Example: Instead of <div><Child1 /><Child2 /></div>, use <><Child1 /><Child2 /></>.

  • They help in reducing unnecessary DOM elements, improving performance.

  • You can use <React.Fragment&...

A React Js Frontend Developer was asked 2mo ago
Q. What is the difference between 'it' and 'describe' in Jest?
Ans. 

In Jest, 'describe' groups tests, while 'it' defines individual test cases.

  • 'describe' is used to create a test suite, grouping related tests together.

  • 'it' is used to define a single test case within a test suite.

  • Example of 'describe': describe('Array methods', () => { ... });

  • Example of 'it': it('should return the correct length', () => { ... });

  • 'describe' can contain multiple 'it' blocks to test various ...

React Js Frontend Developer Interview Questions Asked at Other Companies

asked in Simform
Q1. 1. What is difference between abstract class and interface ?
asked in Simform
Q2. What is the difference between a primary key and a unique key?
asked in Simform
Q3. What is an arrow function in JavaScript?
asked in TCS
Q4. How can we mimic lifecycle methods using useEffect in functional ... read more
asked in Simform
Q5. 5. Why we require interface and what is interface in java ?
A React Js Frontend Developer was asked 2mo ago
Q. What are hooks?
Ans. 

Hooks are functions that let you use state and lifecycle features in functional components in React.

  • Hooks allow functional components to manage state without using class components. Example: useState hook.

  • They enable side effects in functional components. Example: useEffect hook for data fetching.

  • Custom hooks can be created to encapsulate reusable logic across components.

  • Hooks follow a specific naming convention, ...

A React Js Frontend Developer was asked 2mo ago
Q. What is a promise?
Ans. 

A Promise is an object representing the eventual completion or failure of an asynchronous operation in JavaScript.

  • Promises can be in one of three states: pending, fulfilled, or rejected.

  • A fulfilled promise returns a value, while a rejected promise returns an error.

  • Example: const myPromise = new Promise((resolve, reject) => { /* async operation */ });

  • You can handle the result of a promise using .then() for succe...

A React Js Frontend Developer was asked 2mo ago
Q. Suppose you are fetching 1000 data entries from a fetch API, and it takes a long time to load. What techniques would you use to reduce the loading time?
Ans. 

To optimize data fetching in React, techniques like pagination, lazy loading, and caching can significantly reduce load times.

  • Pagination: Instead of fetching all 1000 records at once, implement pagination to load data in chunks, e.g., 100 records per request.

  • Lazy Loading: Load data only when needed, such as when a user scrolls down or navigates to a specific section of the app.

  • Caching: Use caching mechanisms like ...

A React Js Frontend Developer was asked 2mo ago
Q. What is the difference between class and functional components?
Ans. 

Class components use ES6 classes, while functional components are simpler functions. Both render UI but differ in syntax and features.

  • Class components can hold and manage local state using 'this.state'. Example: 'this.setState({ count: this.state.count + 1 })'.

  • Functional components are stateless by default but can use hooks (like useState) to manage state. Example: 'const [count, setCount] = useState(0)'.

  • Class com...

A React Js Frontend Developer was asked 2mo ago
Q. Write a form with input fields for name and age. On form submission, display the entered data in the console.
Ans. 

Create a simple React form to capture name and age, and log the data to the console on submission.

  • Use functional components and hooks like useState for managing form state.

  • Create a form with controlled components for input fields.

  • Handle form submission with an onSubmit event handler.

  • Use console.log to display the captured data in the console.

Are these interview questions helpful?
A React Js Frontend Developer was asked 6mo ago
Q. What are Web Workers?
Ans. 

Web Workers are a way to run JavaScript code in the background, separate from the main thread of the web application.

  • Web Workers allow for multi-threading in JavaScript, improving performance by offloading tasks to separate threads.

  • They can be used for tasks like heavy calculations, image processing, or other CPU-intensive operations.

  • Communication between the main thread and Web Workers is done through message pas...

A React Js Frontend Developer was asked 6mo ago
Q. What are the steps to implement Redux in a React application?
Ans. 

Implementing Redux in a React application involves several steps to manage state globally.

  • Install Redux and React-Redux libraries using npm or yarn.

  • Create a Redux store to hold the state of the application.

  • Define reducers to specify how the state should change in response to actions.

  • Dispatch actions to update the state in the Redux store.

  • Connect React components to the Redux store using the connect function from R...

A React Js Frontend Developer was asked 6mo ago
Q. What is a closure in programming?
Ans. 

A closure is a function that has access to its own scope, as well as the scope in which it was defined.

  • A closure allows a function to access variables from an outer function even after the outer function has finished executing.

  • Closures are commonly used to create private variables in JavaScript.

  • Example: function outerFunction() { let outerVar = 'I am outer'; return function innerFunction() { console.log(outerVar);...

Infosys React Js Frontend Developer Interview Experiences

21 interviews found

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(2 Questions)

  • Q1. Explain ES6 Concepts
  • Ans. 

    ES6 introduces new features like arrow functions, classes, and modules, enhancing JavaScript's capabilities and syntax.

    • Arrow Functions: Shorter syntax for writing functions. Example: const add = (a, b) => a + b;

    • Template Literals: Multi-line strings and string interpolation. Example: const greeting = `Hello, ${name}!`;

    • Destructuring Assignment: Unpacking values from arrays or properties from objects. Example: const [x...

  • Answered by AI
  • Q2. Difference between shallow copy and deep copy
  • Ans. 

    Shallow copy duplicates the top-level structure, while deep copy duplicates all nested objects recursively.

    • Shallow copy creates a new object but copies references to nested objects.

    • Example: Using Object.assign() or spread operator for shallow copy.

    • Deep copy creates a new object and recursively copies all nested objects.

    • Example: Using JSON.parse(JSON.stringify(obj)) for deep copy.

    • Modifying nested objects in a shallow co...

  • Answered by AI
Round 2 - Behavioral 

(2 Questions)

  • Q1. About my project
  • Q2. Work flow and all

Skills evaluated in this interview

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(1 Question)

  • Q1. React technical question , html, css and javascript. new hooks, in css border-box, semantic tag, and those normal interview questions
Round 2 - HR 

(1 Question)

  • Q1. Hr questions and how would you handle side effect in react
Interview experience
5
Excellent
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
-

I applied via Company Website and was interviewed in Sep 2024. There were 2 interview rounds.

Round 1 - Technical 

(2 Questions)

  • Q1. Basic questions on Js and react
  • Q2. Example is given to call an dummy api
  • Ans. 

    To call a dummy API, use fetch() method with the API URL and handle the response using .then()

    • Use fetch() method to make a GET request to the dummy API URL

    • Handle the response using .then() method to access the data returned by the API

    • You can also use async/await syntax for cleaner code

  • Answered by AI
Round 2 - Technical 

(1 Question)

  • Q1. Project related questions
Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(3 Questions)

  • Q1. Diff between virtual dom and original dom
  • Ans. 

    Virtual DOM is a lightweight copy of the original DOM that React uses to improve performance by minimizing actual DOM manipulation.

    • Virtual DOM is a representation of the actual DOM in memory.

    • React compares the virtual DOM with the original DOM and only updates the parts that have changed.

    • Virtual DOM updates are faster than directly manipulating the original DOM.

    • Virtual DOM helps in optimizing performance by reducing th...

  • Answered by AI
  • Q2. Detailed explanation of useffect
  • Ans. 

    useEffect is a React hook that allows for side effects in functional components.

    • useEffect is used to perform side effects in functional components.

    • It runs after every render by default.

    • It can be used to fetch data, subscribe to events, update the DOM, and more.

    • To run useEffect only once, pass an empty array as the second argument.

    • To clean up effects, return a function from useEffect.

  • Answered by AI
  • Q3. UseMemo will use in all component
  • Ans. 

    useMemo optimizes performance by memoizing expensive calculations in React components.

    • useMemo is a React hook that memoizes the result of a computation.

    • It helps prevent unnecessary recalculations on re-renders.

    • Example: const memoizedValue = useMemo(() => computeExpensiveValue(a, b), [a, b]);

    • useMemo should be used selectively for expensive calculations, not for every component.

    • Overusing useMemo can lead to more compl...

  • Answered by AI

Skills evaluated in this interview

Interview experience
4
Good
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
-

I appeared for an interview in Mar 2025, where I was asked the following questions.

  • Q1. What is Difference b/w class and functional component?
  • Ans. 

    Class components use ES6 classes, while functional components are simpler functions. Both render UI but differ in syntax and features.

    • Class components can hold and manage local state using 'this.state'. Example: 'this.setState({ count: this.state.count + 1 })'.

    • Functional components are stateless by default but can use hooks (like useState) to manage state. Example: 'const [count, setCount] = useState(0)'.

    • Class componen...

  • Answered by AI
  • Q2. What is Promise?
  • Ans. 

    A Promise is an object representing the eventual completion or failure of an asynchronous operation in JavaScript.

    • Promises can be in one of three states: pending, fulfilled, or rejected.

    • A fulfilled promise returns a value, while a rejected promise returns an error.

    • Example: const myPromise = new Promise((resolve, reject) => { /* async operation */ });

    • You can handle the result of a promise using .then() for success an...

  • Answered by AI
  • Q3. What is hooks?
  • Ans. 

    Hooks are functions that let you use state and lifecycle features in functional components in React.

    • Hooks allow functional components to manage state without using class components. Example: useState hook.

    • They enable side effects in functional components. Example: useEffect hook for data fetching.

    • Custom hooks can be created to encapsulate reusable logic across components.

    • Hooks follow a specific naming convention, start...

  • Answered by AI
  • Q4. What fragment in React?
  • Ans. 

    Fragments in React allow grouping multiple elements without adding extra nodes to the DOM.

    • Fragments are used to return multiple elements from a component without wrapping them in a div.

    • Example: Instead of <div><Child1 /><Child2 /></div>, use <><Child1 /><Child2 /></>.

    • They help in reducing unnecessary DOM elements, improving performance.

    • You can use <React.Fragment> o...

  • Answered by AI
  • Q5. What is Foreach, Filter and map function?
  • Ans. 

    Foreach, Filter, and Map are array methods in JavaScript for iterating and transforming data.

    • forEach: Executes a provided function once for each array element. Example: [1, 2, 3].forEach(num => console.log(num));

    • filter: Creates a new array with elements that pass a test. Example: [1, 2, 3, 4].filter(num => num > 2); // [3, 4]

    • map: Creates a new array by applying a function to each element. Example: [1, 2, 3].ma...

  • Answered by AI
  • Q6. What is Jest ? Give an Example
  • Ans. 

    Jest is a JavaScript testing framework designed for simplicity, focusing on unit testing and providing a rich API for assertions.

    • Zero Configuration: Jest works out of the box for most JavaScript projects, requiring minimal setup to get started.

    • Snapshot Testing: Jest allows you to take snapshots of your components and compare them during tests to ensure UI consistency.

    • Mocking Functions: Jest provides built-in mocking ca...

  • Answered by AI
  • Q7. Suppose you are fetching 1000 of data from fetch API and it takes time to load. What technique you will use to reduce time?
  • Ans. 

    To optimize data fetching in React, techniques like pagination, lazy loading, and caching can significantly reduce load times.

    • Pagination: Instead of fetching all 1000 records at once, implement pagination to load data in chunks, e.g., 100 records per request.

    • Lazy Loading: Load data only when needed, such as when a user scrolls down or navigates to a specific section of the app.

    • Caching: Use caching mechanisms like local...

  • Answered by AI
  • Q8. Write a form with input field name and age and on submit form show data in console.
  • Ans. 

    Create a simple React form to capture name and age, and log the data to the console on submission.

    • Use functional components and hooks like useState for managing form state.

    • Create a form with controlled components for input fields.

    • Handle form submission with an onSubmit event handler.

    • Use console.log to display the captured data in the console.

  • Answered by AI
  • Q9. Will you able to take responsibility if some project has to deliver in timeLine?
  • Q10. What is Difference b/w it and describe in Jest?
  • Ans. 

    In Jest, 'describe' groups tests, while 'it' defines individual test cases.

    • 'describe' is used to create a test suite, grouping related tests together.

    • 'it' is used to define a single test case within a test suite.

    • Example of 'describe': describe('Array methods', () => { ... });

    • Example of 'it': it('should return the correct length', () => { ... });

    • 'describe' can contain multiple 'it' blocks to test various scena...

  • Answered by AI
Interview experience
3
Average
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
-

I applied via Recruitment Consulltant and was interviewed in Jun 2024. There was 1 interview round.

Round 1 - Technical 

(6 Questions)

  • Q1. What is closure
  • Ans. 

    A closure is a function that has access to its own scope, as well as the scope in which it was defined.

    • A closure allows a function to access variables from an outer function even after the outer function has finished executing.

    • Closures are commonly used to create private variables in JavaScript.

    • Example: function outerFunction() { let outerVar = 'I am outer'; return function innerFunction() { console.log(outerVar); }; }

  • Answered by AI
  • Q2. What is webworkers
  • Ans. 

    Web Workers are a way to run JavaScript code in the background, separate from the main thread of the web application.

    • Web Workers allow for multi-threading in JavaScript, improving performance by offloading tasks to separate threads.

    • They can be used for tasks like heavy calculations, image processing, or other CPU-intensive operations.

    • Communication between the main thread and Web Workers is done through message passing.

    • ...

  • Answered by AI
  • Q3. What is first class function and
  • Ans. 

    A first class function is a function that can be treated like any other variable in a programming language.

    • Can be passed as an argument to other functions

    • Can be returned from other functions

    • Can be assigned to variables

    • Can be stored in data structures

  • Answered by AI
  • Q4. What is first paint and temporal dead zone
  • Ans. 

    First paint refers to the time when the browser starts rendering pixels to the screen. Temporal dead zone is a period in JavaScript where a variable exists but cannot be accessed.

    • First paint is the time when the browser starts rendering content on the screen.

    • Temporal dead zone is a period in JavaScript where a variable is declared but cannot be accessed due to the variable being in an inaccessible state.

    • Example: const ...

  • Answered by AI
  • Q5. What is callback, event deligaton, react reconcillaton, react life cycle methods
  • Ans. 

    Callbacks, event delegation, React reconciliation, and React lifecycle methods are key concepts in React development.

    • Callback functions are functions passed as arguments to be executed later, commonly used in event handling and asynchronous operations.

    • Event delegation is a technique where a single event listener is attached to a parent element to manage events for multiple child elements.

    • React reconciliation is the pro...

  • Answered by AI
  • Q6. Implementing redux
  • Ans. 

    Implementing Redux in a React application involves several steps to manage state globally.

    • Install Redux and React-Redux libraries using npm or yarn.

    • Create a Redux store to hold the state of the application.

    • Define reducers to specify how the state should change in response to actions.

    • Dispatch actions to update the state in the Redux store.

    • Connect React components to the Redux store using the connect function from React-...

  • Answered by AI

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(2 Questions)

  • Q1. Create a table component from array of objects
  • Ans. 

    Create a table component from array of objects in React JS

    • Map through the array of objects to render rows in the table

    • Use Object.keys() to dynamically generate table headers

    • Utilize CSS for styling the table

  • Answered by AI
  • Q2. What is event loop
  • Ans. 

    Event loop is a mechanism in JavaScript that allows for asynchronous operations to be executed in a non-blocking way.

    • Event loop is responsible for handling the execution of code in a single-threaded environment.

    • It continuously checks the call stack for any functions that need to be executed.

    • If the call stack is empty, it looks at the task queue for any pending tasks to be executed.

    • Event loop ensures that JavaScript rem...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Focus in js concepts

Skills evaluated in this interview

Interview experience
3
Average
Difficulty level
Easy
Process Duration
2-4 weeks
Result
Not Selected

I applied via LinkedIn and was interviewed in Aug 2024. There were 2 interview rounds.

Round 1 - Group Discussion 

Discussion about javascript concepts

Round 2 - Coding Test 

Coding for react components

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(2 Questions)

  • Q1. Difference between props and data
  • Ans. 

    Props are used to pass data from parent to child components in React, while data refers to the information stored within a component.

    • Props are read-only and cannot be modified by the child component.

    • Data is mutable and can be changed within the component.

    • Props are passed down from parent to child components, while data is stored within the component itself.

    • Example: Passing a 'name' prop from a parent component to a chi...

  • Answered by AI
  • Q2. Lifecycle methods
Round 2 - HR 

(2 Questions)

  • Q1. Describe your greatest Strength
  • Q2. Describe your greatest Weakness

Skills evaluated in this interview

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

50 minutes coding round they asked me some theoretical question and machine coding question they asked me DSA question

What people are saying about Infosys

View All
schedule2
Verified Icon
3d
works at
Cognizant
Salary expectation
I have 5+ years of experience in springboot microservices, currently working in CTS and having 10L CTC , wanted to switch in Infosys or Accenture like companies, how much should I ask for 15L-18L ? Just worried if I ask more they can reject my application, please help me with some numbers
Got a question about Infosys?
Ask anonymously on communities.

Infosys Interview FAQs

How many rounds are there in Infosys React Js Frontend Developer interview?
Infosys interview process usually has 1-2 rounds. The most common rounds in the Infosys interview process are Technical, HR and Coding Test.
How to prepare for Infosys React Js Frontend Developer interview?
Go through your CV in detail and study all the technologies mentioned in your CV. Prepare at least two technologies or languages in depth if you are appearing for a technical interview at Infosys. The most common topics and skills that interviewers at Infosys expect are React Native, Redux and UI Development.
What are the top questions asked in Infosys React Js Frontend Developer interview?

Some of the top questions asked at the Infosys React Js Frontend Developer interview -

  1. what is callback, event deligaton, react reconcillaton, react life cycle meth...read more
  2. Suppose you are fetching 1000 of data from fetch API and it takes time to load....read more
  3. What is Difference b/w class and functional compone...read more
How long is the Infosys React Js Frontend Developer interview process?

The duration of Infosys React Js Frontend Developer interview process can vary, but typically it takes about less than 2 weeks to complete.

Tell us how to improve this page.

Overall Interview Experience Rating

4/5

based on 25 interview experiences

Difficulty level

Easy 50%
Moderate 50%

Duration

Less than 2 weeks 56%
2-4 weeks 44%
View more
Join Infosys Creating the next opportunity for people, businesses & communities
Infosys React Js Frontend Developer Salary
based on 77 salaries
₹3.6 L/yr - ₹7.6 L/yr
29% less than the average React Js Frontend Developer Salary in India
View more details

Infosys React Js Frontend Developer Reviews and Ratings

based on 5 reviews

5.0/5

Rating in categories

5.0

Skill development

4.7

Work-life balance

4.3

Salary

5.0

Job security

5.0

Company culture

4.7

Promotions

5.0

Work satisfaction

Explore 5 Reviews and Ratings
Technology Analyst
54.7k salaries
unlock blur

₹4.8 L/yr - ₹10 L/yr

Senior Systems Engineer
53.7k salaries
unlock blur

₹2.5 L/yr - ₹6.3 L/yr

Technical Lead
35k salaries
unlock blur

₹7.3 L/yr - ₹20 L/yr

System Engineer
32.5k salaries
unlock blur

₹2.4 L/yr - ₹5.3 L/yr

Senior Associate Consultant
31k salaries
unlock blur

₹8.1 L/yr - ₹14 L/yr

Explore more salaries
Compare Infosys with

TCS

3.6
Compare

Wipro

3.7
Compare

Cognizant

3.7
Compare

Accenture

3.8
Compare
write
Share an Interview