Questions with Answers

What's the purpose of React Router?

React Router Helps to make SPA's (Single Page Application) routing without refreshing whole DOM, It also helps to fetch data and send it to it's element

901

How does Context API works?

The Context API is used to share data across multiple Components without Props Drilling.It set's global data that can be accessed within it's scoped Components

926

What is useRef?

useRef is a synchronous hook that updates the state immediately and persists its value through the component's lifecycle and prevents re rendering.

135