Can you explain the role of the Context API in managing state in React applications?

Technical