Filter interviews by
Clear (1)
I applied via Approached by Company and was interviewed in Mar 2024. There were 2 interview rounds.
Top trending discussions
I applied via Naukri.com and was interviewed in Oct 2023. There were 2 interview rounds.
Create a CRUD app to render, edit, delete, and sort a list of objects in a table.
Create a React component to render a table with data from the array of objects.
Implement functions for editing and deleting objects from the list.
Add functionality to sort the list based on object properties.
Use state and props to manage data and re-render the table when changes occur.
rem, em, px are units of measurement in CSS. React hooks like useEffect replace lifecycle methods for side effects.
rem: relative to the font-size of the root element (html). Example: 1rem = 16px
em: relative to the font-size of the element. Example: 2em = 32px if font-size is 16px
px: fixed-size units. Example: font-size: 16px
useEffect: replaces componentDidMount, componentDidUpdate, and componentWillUnmount in class com...
I applied via Naukri.com and was interviewed in Jun 2024. There were 3 interview rounds.
I was interviewed in Sep 2023.
A reducer is a pure function in React that takes the previous state and an action, and returns the new state.
Reducers are used in React to manage state changes in an application
They take the previous state and an action as input
Reducers are pure functions, meaning they do not modify the state directly
They return a new state based on the previous state and the action
Redux is a popular library that uses reducers to manag
New features of HTML5 and CSS positions include flexbox, grid layout, and sticky positioning.
Flexbox allows for easier alignment and distribution of items within a container.
Grid layout enables the creation of complex layouts with rows and columns.
Sticky positioning allows elements to stick to a specific position on the page as the user scrolls.
Spread operator is used to expand an iterable object into individual elements.
Used for passing props to child components
Used for merging arrays and objects
Syntax: ...
Example: const arr = [1, 2, 3]; const newArr = [...arr, 4, 5];
I applied via LinkedIn and was interviewed in Jun 2021. There was 1 interview round.
Hoisting is a JavaScript mechanism where variables and function declarations are moved to the top of their scope.
Variables declared with var are hoisted to the top of their scope
Function declarations are hoisted before variables
Function expressions are not hoisted
Hoisting can lead to unexpected behavior and bugs
useEffect is a hook in React that allows you to perform side effects in functional components.
It replaces componentDidMount, componentDidUpdate, and componentWillUnmount.
It takes two arguments: a function that performs the side effect and an array of dependencies.
The function is called after every render, unless the dependencies haven't changed.
Common use cases include fetching data, setting up event listeners, and upd...
Function currying is a technique of transforming a function that takes multiple arguments into a sequence of functions that each take a single argument.
Currying allows partial application of a function.
It helps in creating reusable functions.
Curried functions are composable and can be easily combined to create new functions.
Currying can be achieved using closures or by using libraries like Lodash or Ramda.
Example: cons
Closures are functions that have access to variables in their outer scope, even after the outer function has returned.
Closures are created when a function is defined inside another function.
The inner function has access to the outer function's variables and parameters.
Closures can be used to create private variables and methods.
Closures can also be used to create functions with pre-set arguments.
React 16 introduced new features like React Fiber, Error Boundaries, Portals, and improved server-side rendering.
React Fiber is a new reconciliation engine that improves performance and enables incremental rendering.
Error Boundaries allow developers to catch and handle errors in components.
Portals provide a way to render children into a different DOM subtree.
Improved server-side rendering with support for streaming and...
React hooks simplify state management and lifecycle methods in functional components.
Hooks allow functional components to have state and lifecycle methods
They reduce the need for class components and HOCs
Hooks make code more readable and easier to test
Examples of hooks include useState, useEffect, and useContext
HOC components are higher-order components in React that allow code reuse and logic sharing.
HOC components are functions that take a component and return a new component with additional functionality.
They are used to abstract common logic and behaviors into reusable components.
HOC components can be used for tasks like authentication, logging, and code reuse.
Example: a withAuth HOC component that adds authentication log
Redux is a predictable state container for JavaScript apps. It helps manage the state of an application in a more organized way.
Redux is a state management tool commonly used with React to manage the state of an application.
It follows a unidirectional data flow, where the state is stored in a single store.
Actions are dispatched to update the state, and reducers specify how the state should change in response to actions...
Context API is used in React to pass data through the component tree without having to pass props down manually at every level.
Avoids prop drilling by providing a way to share values like themes, user data, etc. across the component tree.
Helps in managing global state in React applications.
Context API consists of Provider and Consumer components to provide and consume the context data.
Can be used for theming, localizat
based on 1 interview
Interview experience
Technology Specialist
107
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Engineer
91
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Software Engineer
37
salaries
| ₹0 L/yr - ₹0 L/yr |
Associate Engineer
26
salaries
| ₹0 L/yr - ₹0 L/yr |
Associate Software Engineer
17
salaries
| ₹0 L/yr - ₹0 L/yr |
TCS
Infosys
Wipro
Tech Mahindra