Is the `ref` property of components the only idiomatic way to "escape the world of ReactJS" and interact with the DOM directly when working in a ReactJS application?

Clearly I could do something like `document.querySelector` in `componentDidMount`, but other than that...