Featured Blogs

Explore thousands of Trending Blogs about your job

When should we use context api?

Context API is useful when you have state that needs to be shared across multiple components and passing it down through props becomes cumbersome. However, it is important to note that using the Context API can lead to coupling between components

What is custom hook?

custom hook is a JavaScript function that uses one or more of the built-in React hooks such as useState, useEffect, or useContext to provide some reusable logic that can be shared across multiple components.

What is UseRef?

useRef hook provides a way to create a mutable reference that can persist across component re-renders. It returns an object with a current property, which can be used to store a value that persists between renders.

What is useMemo?

useMemo hook is used for optimizing the performance of expensive computations or calculations in functional components. It allows you to memoize the result of a function, and avoid re-computing it on every render, which can be computationally expensive and negatively impact the performance of the application.