What is a hook in React?

In React, a hook is a function that allows developers to use state and other React features in functional components, rather than just in class components.

Why is React a library?

React is a library because it focuses on providing a specific set of features for building user interfaces.

Is React JS frontend or backend?

React is a JavaScript library for building user interfaces, typically used for building front-end (client-side) web applications.