Filter interviews by
I applied via Naukri.com and was interviewed in Mar 2021. There was 1 interview round.
Export types in ReactJS allow components, functions, and variables to be accessed and used in other files.
Exporting a component allows it to be imported and used in other files
Exporting a function allows it to be imported and used in other files
Exporting a variable allows it to be imported and used in other files
Hooks are functions that allow you to use state and other React features without writing a class.
useState is a hook that allows you to add state to functional components.
useEffect is a hook that allows you to perform side effects in functional components.
Hooks can only be used in functional components.
Hooks must be called at the top level of a functional component.
Hooks can be used to replace lifecycle methods in class
The 'this' keyword in JS refers to the object that is currently executing the code.
The value of 'this' depends on how a function is called.
In a method, 'this' refers to the object that the method belongs to.
In a regular function, 'this' refers to the global object (window in a browser).
In an event handler, 'this' refers to the element that triggered the event.
The value of 'this' can be explicitly set using call(), appl
setState is a method used in React to update the state of a component.
setState is asynchronous and batched for performance optimization.
It merges the new state with the previous state.
It schedules a re-render of the component and its children.
Passing a function to setState ensures the previous state is used correctly.
Example: this.setState({ count: this.state.count + 1 })
Answer to a React Developer interview question about class and functional components and passing props.
Class component: class MyComponent extends React.Component {}
Functional component: const MyComponent = (props) => {}
Passing props from parent to child:
Promises are a way to handle asynchronous operations in JavaScript. Promise.all is used to execute multiple promises concurrently.
Promises represent a value that may not be available yet
They have three states: pending, fulfilled, and rejected
Promise.all takes an array of promises and returns a new promise that resolves when all promises in the array have resolved
If any promise in the array is rejected, the returned pro...
ES6 features: Spread Operator, Rest Parameter, Object Destructuring
Spread Operator: allows an iterable to be expanded into individual elements
Rest Parameter: allows a function to accept an indefinite number of arguments as an array
Object Destructuring: allows extracting properties from an object and assigning them to variables
Top trending discussions
Custom hooks are reusable functions that allow you to extract component logic into separate functions for easier reusability.
Custom hooks start with 'use' keyword (e.g. useCustomHook)
Custom hooks can use other hooks inside them
Custom hooks can accept arguments and return values
Normal js,react question
Hoisting is the JavaScript mechanism where variable and function declarations are moved to the top of their containing scope. HOC stands for Higher Order Component, a pattern used in React for code reusability. Debouncing is a technique used to limit the rate at which a function is executed.
Hoisting moves variable and function declarations to the top of their scope during the compilation phase.
HOC is a function that ta...
I applied via Naukri.com and was interviewed in Oct 2024. There were 2 interview rounds.
Group discussion related in company
I applied via Company Website and was interviewed in Oct 2024. There was 1 interview round.
Closure is a function that has access to its own scope, as well as the scope in which it was defined.
Closure allows a function to access variables from its outer function even after the outer function has finished executing.
It helps in maintaining state in asynchronous operations.
Example: function outerFunction() { let outerVar = 'I am outer'; return function innerFunction() { console.log(outerVar); }; }
Hooks in React are functions that let you use state and other React features without writing a class.
Hooks were introduced in React 16.8 to allow functional components to have state and lifecycle methods.
useState() is a hook that allows you to add state to functional components.
useEffect() is a hook that allows you to perform side effects in functional components.
Custom hooks are reusable functions that can contain log...
posted on 10 Jul 2024
I applied via LinkedIn and was interviewed in Jun 2024. There was 1 interview round.
Callbacks are functions passed as arguments to another function to be executed later
Callbacks are commonly used in event handling, asynchronous programming, and functional programming
Callbacks can be synchronous or asynchronous
Example: passing a callback function to a setTimeout() function
Reasoning, English, mathematics
HTML, JavaScript, python
I applied via Naukri.com and was interviewed in Sep 2023. There were 3 interview rounds.
MCQ questions on react
Hoisting is a behavior in JavaScript where variable and function declarations are moved to the top of their containing scope during compilation.
Variable declarations are hoisted to the top of their scope but not their assignments.
Function declarations are fully hoisted, meaning they can be called before they are declared.
Hoisting can lead to unexpected behavior if not understood properly.
I applied via Job Fair and was interviewed in Sep 2024. There were 3 interview rounds.
Aptitude of quantitative, reasoning,general awareness of job followed rules
C,c++,Java, Android,html css ,php
Consultant
72
salaries
| ₹5.6 L/yr - ₹16.5 L/yr |
Lead Consultant
64
salaries
| ₹11 L/yr - ₹23 L/yr |
Senior Consultant
60
salaries
| ₹8.4 L/yr - ₹27 L/yr |
Software Engineer
52
salaries
| ₹2.8 L/yr - ₹9 L/yr |
Associate Consultant
49
salaries
| ₹4 L/yr - ₹10.2 L/yr |
TCS
Infosys
Wipro
HCLTech