i
Seasia Infotech
Filter interviews by
Hooks are a new feature in React 16.8 that allow you to use state and other React features without writing a class.
Hooks are functions that let you use React state and lifecycle methods inside functional components
They allow you to reuse stateful logic across multiple components
useState is a hook that lets you add state to functional components
useEffect is a hook that lets you use lifecycle methods in functional compon...
Use useState hook to manage state in functional components
Import useState hook from React
Declare state variable using useState hook
Use state variable and setState function to update state
Pass state variable and setState function as props to child components if needed
useEffect is a hook in React that allows performing side effects in functional components.
useEffect is used to perform side effects in functional components.
It takes two arguments: a function and an array of dependencies.
The function is executed after every render cycle.
The array of dependencies is used to specify when the effect should be re-executed.
An empty array [] means the effect should only be executed once, on
Life cycle methods are functions that are invoked at various stages of a component's existence in React.Js.
There are three categories of life cycle methods: mounting, updating, and unmounting.
Mounting methods are called when a component is being created and inserted into the DOM.
Updating methods are called when a component is being re-rendered due to changes in its props or state.
Unmounting methods are called when a co...
Redux is a predictable state container for JavaScript apps.
Redux is a library for managing application state.
It provides a central store for all the state in an application.
State changes are made through actions, which are dispatched to the store.
Reducers are pure functions that take the current state and an action, and return the new state.
Selectors are functions that extract data from the state.
Middleware can be used...
Reducer is a pure function that takes the previous state and an action, and returns the new state in Redux.
Reducers specify how the application's state changes in response to actions sent to the store.
They are pure functions that take the previous state and an action, and return the new state.
Reducers should not modify the previous state, but return a new object if the state changes.
Redux uses a single root reducer fun...
Top trending discussions
posted on 24 Jul 2024
Split-wise is a basic implementation to divide expenses among a group of people.
Create a function that takes in an array of expenses and participants
Calculate the total expense and divide it equally among participants
Return a list of strings showing who owes how much to whom
BookMyShow is a platform for booking movie tickets, event tickets, and other entertainment activities.
Low level design: Database schema for storing user information, ticket details, show timings, etc.
High level design: System architecture including front-end, back-end, and database components.
Example: Use of microservices for scalability and fault tolerance.
Example: Integration with payment gateways for seamless transa
posted on 15 May 2024
posted on 16 Sep 2024
I was interviewed in Mar 2024.
posted on 13 Feb 2023
I applied via Naukri.com and was interviewed in Jun 2022. There were 4 interview rounds.
Total 35 questions, with 5 sections and time duration 35 minutes.
The question is too broad to provide a specific answer.
APIs can have various methods such as GET, POST, PUT, DELETE, etc.
The methods in an API depend on the specific API being referred to.
Examples of API methods include 'getUser', 'createOrder', 'updateProfile', etc.
I have faced issues with compatibility, performance, and user acceptance testing.
Compatibility issues with different browsers and operating systems
Performance issues with large datasets and high traffic
User acceptance testing revealed unexpected user behavior
posted on 2 Mar 2022
I was interviewed in Mar 2022.
An interceptor is a middleware component that intercepts incoming and outgoing HTTP requests in an application.
Interceptors can be used for logging, authentication, error handling, and modifying requests/responses.
In Angular, interceptors can be used to add headers to HTTP requests or handle errors globally.
In Spring framework, interceptors can be used for pre-processing and post-processing of requests.
Interceptors are...
Functional interfaces in Java are interfaces with a single abstract method, used for lambda expressions and method references.
Functional interfaces can be found in the java.util.function package.
Examples of functional interfaces include Consumer, Supplier, Predicate, and Function.
Functional interfaces can be identified by the @FunctionalInterface annotation.
Gateway implementation in Spring Boot allows for routing and filtering of incoming requests to different microservices.
Use Spring Cloud Gateway for implementing gateway in Spring Boot
Define routes and filters in application.properties or application.yml
Example: routes: - id: my_route uri: http://localhost:8080 predicates: - Path=/my_route/**
Example: filters: - AddRequestHeader=X-Request-Foo, Bar
posted on 17 Sep 2023
I applied via Naukri.com and was interviewed before Sep 2022. There were 4 interview rounds.
Basic programming questions, like find the occurrence of the characters in a string
posted on 8 Jun 2022
Pattern program and general output questions
based on 1 review
Rating in categories
Software Developer
40
salaries
| ₹1.1 L/yr - ₹6.8 L/yr |
Associate Consultant
17
salaries
| ₹2.1 L/yr - ₹5 L/yr |
Senior Consultant
14
salaries
| ₹4.8 L/yr - ₹15.1 L/yr |
Team Lead
12
salaries
| ₹6 L/yr - ₹15.9 L/yr |
Software Engineer
11
salaries
| ₹3.3 L/yr - ₹9.7 L/yr |
TCS
Infosys
Wipro
HCLTech