What is the purpose ofReact Router?

React Router is a standard library for routing in React. It enables the navigation among views of various components in a React Application, allows changing the browser URL, and keeps the UI in sync with the URL.

How does Context API works?

Context API introduced in ​​React 16.3. It makes it possible to pass data from parent to children nested deep down the component tree directly, instead of passing it down through a chain of props / props-drilling. Context is also touted as an easier, lighter approach to state management using Redux.

What is useRef hook & how does it works?

The useRef allows you to persist values between renders. It can be used to store a mutable value that does not cause a re-render when updated.It can be used to access a DOM element directly.