concept third - party library in category react

This is an excerpt from Manning's book React in Action.
The next method I’ll cover is componentDidMount. When React calls this method, you have the opportunity to use componentDidMount as well as access refs on components. In this method, you have access to component state and props as well as the knowledge that your component is ready for updates. That means it’s a good place to do things like update your component state with data coming back from a network request. It’s also a great place to work with third-party libraries that depend on the DOM, like jQuery and others.
Often, you’ll build React applications in a context that involves non-React libraries that also work with the DOM. These might include things like jQuery, jQuery plugins, or even other front-end frameworks. We’ve seen that React manages the DOM for you and that this can simplify how you think about user interfaces. There are still times, though, where you need to interact with the DOM, and it’s often in the context of third-party libraries that use it. We’ll explore some ways you can go about doing that with React in this chapter as you add Mapbox maps to posts in Letters Social.