Add office photos
Employer?
Claim Account for FREE

Riser Techub

2.2
based on 47 Reviews
Filter interviews by

Nesma & Partners Interview Questions and Answers

Updated 5 Feb 2024

Q1. 3. What is the use useEffect Hook in react native? and how you relate it with lifecycle method which is class components?

Ans.

The useEffect Hook in React Native is used to perform side effects in functional components. It is similar to lifecycle methods in class components.

  • useEffect Hook is used to handle side effects in functional components.

  • It is called after the component has rendered and can be used to fetch data, subscribe to events, or update the DOM.

  • It takes two arguments: a function that contains the side effect logic, and an optional array of dependencies.

  • The function passed to useEffect is...read more

View 2 more answers

Q2. 7. What is the best practice for calling API's?

Ans.

The best practice for calling APIs is to use asynchronous requests and handle errors properly.

  • Use asynchronous requests to prevent blocking the UI thread.

  • Handle errors properly by checking for response status codes and handling network failures.

  • Implement caching mechanisms to improve performance and reduce unnecessary API calls.

  • Consider using libraries or frameworks like Axios or Fetch for making API requests.

  • Follow RESTful principles and use appropriate HTTP methods for diff...read more

View 1 answer

Q3. 5. Have you ever used or know about Redux Thunk or Redux Saga and what is it, How it works?

Ans.

Redux Thunk and Redux Saga are middleware libraries for Redux that allow for asynchronous actions.

  • Redux Thunk is a simple middleware that allows for asynchronous actions by returning a function instead of an action object.

  • Redux Saga is a more powerful middleware that uses generator functions to handle asynchronous actions and allows for more complex control flow.

  • Both libraries are commonly used in React Native applications to manage state and handle asynchronous actions.

  • Redux...read more

Add your answer

Q4. 6. Which is your highest priority HOC Components?

Ans.

My highest priority HOC components are those that handle authentication and authorization.

  • Authentication HOCs like withAuthenticator and withAuthContext

  • Authorization HOCs like withAuthorization and withRoleBasedAccessControl

  • HOCs that handle user sessions and persistent login state

Add your answer
Discover Nesma & Partners interview dos and don'ts from real experiences

Q5. 1. What is React Native bridge?

Ans.

React Native bridge is a communication layer between JavaScript code and native code.

  • It allows React Native to interact with native modules written in Objective-C, Java, or Swift.

  • The bridge sends messages between the two environments, allowing for seamless integration.

  • The bridge can also be used to pass data between the two environments.

  • For example, a React Native app might use the bridge to access the device's camera or accelerometer.

  • The bridge can be a performance bottlenec...read more

Add your answer

Q6. 2. What is HOC (Higher order components)?

Ans.

HOC is a function that takes a component and returns a new component with additional functionality.

  • HOC is a design pattern in React.

  • It allows reusing component logic.

  • HOC can be used for cross-cutting concerns like authentication, logging, etc.

  • HOC can be created using a function that takes a component and returns a new component.

  • The new component can render the original component with additional props or wrap it with other components.

  • Example: WithAuth HOC can add authenticatio...read more

Add your answer

Q7. 8. What are props and how it works?

Ans.

Props are short for properties and are used to pass data from one component to another in React Native.

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

  • Props are passed down from parent to child component.

  • Props can be any data type, including strings, numbers, objects, and functions.

  • Props are accessed using the 'this.props' syntax in class components and 'props' in functional components.

  • Props can have default values set using defaultProps.

Add your answer

Q8. 4. What is Redux?

Ans.

Redux is a predictable state container for JavaScript apps.

  • Redux is a state management library for JavaScript applications.

  • It provides a centralized store to manage the state of an application.

  • Redux follows a unidirectional data flow pattern.

  • Actions are dispatched to update the state in the store.

  • Reducers are pure functions that update the state based on the dispatched actions.

  • Selectors are used to retrieve data from the store.

  • Redux can be used with React, Angular, Vue, and o...read more

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
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
Get AmbitionBox app

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