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.
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.
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.