Add office photos
Engaged Employer

TCS

3.7
based on 86.8k Reviews
Filter interviews by

10+ Shreeramaya Nidhi Interview Questions and Answers

Updated 8 Nov 2024
Popular Designations

Q1. What is a single page appliction?

Ans.

A single page application is a web application that loads once and dynamically updates the content without refreshing the page.

  • Loads once and dynamically updates content

  • No page refreshes

  • Uses JavaScript frameworks like React to handle routing and rendering

  • Improves user experience by providing a seamless and responsive interface

View 3 more answers

Q2. what are fragments in react js

Ans.

Fragments in React.js are used to group multiple elements without adding an extra node to the DOM.

  • Fragments are a way to group multiple elements without using a wrapper element.

  • They help in avoiding unnecessary divs in the DOM.

  • Fragments can improve performance by reducing the number of DOM nodes.

  • They are useful when returning multiple elements from a component's render method.

  • Fragments can be written using the syntax or the shorthand <> syntax.

View 1 answer

Q3. How the performance optimization can be done in React Js Application

Ans.

Performance optimization in React Js can be achieved through code splitting, memoization, virtualization, and minimizing re-renders.

  • Implement code splitting to load only necessary components when needed

  • Use memoization techniques like useMemo and useCallback to prevent unnecessary re-renders

  • Implement virtualization for long lists or tables to render only visible items

  • Minimize re-renders by using shouldComponentUpdate or React.memo for functional components

Add your answer

Q4. What are the advantages of react?

Ans.

React provides efficient and flexible UI rendering, component reusability, and easy integration with other libraries.

  • Virtual DOM allows for faster rendering and improved performance

  • Component-based architecture promotes reusability and modularity

  • Easy integration with other libraries and frameworks like Redux and React Native

  • JSX syntax allows for easy creation of complex UI components

  • React community provides a vast array of resources and support

Add your answer
Discover Shreeramaya Nidhi interview dos and don'ts from real experiences

Q5. What is useMemo and its usecases

Ans.

useMemo is a hook in React that memoizes the result of a function and returns the cached value on subsequent renders.

  • useMemo is used to optimize performance by avoiding unnecessary re-renders.

  • It takes two arguments: a function and an array of dependencies.

  • The function is only re-executed if any of the dependencies change.

  • Common use cases include expensive calculations, filtering, and sorting.

  • Example: useMemo(() => calculateExpensiveValue(a, b), [a, b])

Add your answer

Q6. what is the purpose of useMemo and UseCallBack hook

Ans.

useMemo and useCallback are hooks in React used for optimizing performance by memoizing values and functions respectively.

  • useMemo is used to memoize the result of a function so that it is only recomputed when its dependencies change.

  • useCallback is used to memoize a function instance so that it is not recreated on every render unless its dependencies change.

  • Both hooks help in optimizing performance by preventing unnecessary re-renders of components.

  • Example: useMemo(() => expen...read more

Add your answer
Are these interview questions helpful?

Q7. What is callback function? What are hooks?

Ans.

Callback function is a function passed as an argument to another function to be executed later. Hooks are functions that let you use state and other React features without writing a class.

  • Callback function is used to handle asynchronous operations or events in JavaScript.

  • Example: setTimeout function takes a callback function as an argument to execute after a specified time.

  • Hooks are introduced in React 16.8 to allow functional components to use state and other React features....read more

Add your answer

Q8. What is react and tell the advantages of React.

Ans.

React is a JavaScript library for building user interfaces.

  • Component-based architecture for reusability

  • Virtual DOM for efficient updates

  • One-way data binding for predictable data flow

  • Supports server-side rendering for SEO optimization

Add your answer
Share interview questions and help millions of jobseekers 🌟

Q9. What are functional components

Ans.

Functional components are a type of React component that are defined as a function rather than a class.

  • They are simpler and easier to read than class components.

  • They don't have state or lifecycle methods.

  • They receive props as an argument and return JSX.

  • They are often used for presentational components.

  • They can use React hooks to manage state and lifecycle.

  • Example: const MyComponent = (props) => { return

    {props.text}
    }

Add your answer

Q10. From CSS - What is box model?

Ans.

Box model is a fundamental concept in CSS which defines the spacing and dimensions of an element.

  • The box model consists of content, padding, border, and margin.

  • Content area is where the actual content of the element is displayed.

  • Padding is the space between the content and the border.

  • Border surrounds the padding and content.

  • Margin is the space outside the border, separating the element from other elements.

  • Example: div { width: 200px; padding: 20px; border: 1px solid black; ma...read more

Add your answer

Q11. difference between if else and ternary

Ans.

Ternary operator is a shorthand for if else statement in JavaScript.

  • Ternary operator is written as condition ? expression1 : expression2

  • If the condition is true, expression1 is executed, else expression2 is executed

  • Ternary operator is more concise and can be used inline in JSX

Add your answer

Q12. Difference between let,var and const

Ans.

let, var, and const are all used for variable declaration in JavaScript, but they have different scopes and behaviors.

  • let has block scope, var has function scope, and const is a constant that cannot be reassigned.

  • Using let allows you to declare variables that are limited to the scope of a block statement.

  • var variables are hoisted to the top of their function scope.

  • const variables must be initialized with a value and cannot be reassigned.

Add your answer

Q13. What is JSX in react

Ans.

JSX is a syntax extension for JavaScript used in React to write HTML-like code within JavaScript.

  • JSX allows developers to write HTML-like code directly in their JavaScript files

  • It makes the code more readable and easier to understand

  • JSX gets transpiled into regular JavaScript by tools like Babel before being rendered by the browser

Add your answer

Q14. Explain redux flow in react

Ans.

Redux flow in React involves actions, reducers, store, and components to manage state in a centralized manner.

  • Actions are dispatched to describe what happened in the application.

  • Reducers specify how the state changes in response to actions.

  • Store holds the state of the application.

  • Components can connect to the store to access and update the state.

Add your answer

Q15. Optimization in react

Ans.

Optimization in React involves improving performance and efficiency of the application.

  • Use shouldComponentUpdate or PureComponent to prevent unnecessary re-renders

  • Avoid using inline functions in render method to prevent re-renders

  • Use keys in lists to help React identify which items have changed

  • Splitting components into smaller ones can improve performance

  • Use React.memo for functional components to memoize the result

Add your answer

Q16. Explain useSelector

Ans.

useSelector is a hook provided by React-Redux for accessing the Redux store state in functional components.

  • Allows functional components to access the Redux store state without connecting to the store

  • Accepts a selector function as an argument to specify which part of the state to extract

  • Automatically subscribes to the Redux store updates and re-renders the component when the selected state changes

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Shreeramaya Nidhi

based on 11 interviews
2 Interview rounds
Technical Round - 1
Technical Round - 2
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Reactjs Developer Interview Questions from Similar Companies

3.7
 • 34 Interview Questions
3.8
 • 15 Interview Questions
4.0
 • 12 Interview Questions
4.1
 • 11 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter