When running the example shown here (copy/paste):

The following error is displayed:

It's unclear in the documentation how to make it... "wait to render???".... the DrawingManager with the global google object which is not set until the GoogleAPI comes back.
I think the google object is attached to the window, so try using window.google.maps....
if you're using create react app, use window.google
https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#using-global-variables
I think the google object is attached to the window, so try using window.google.maps....
omg thank you!!
use window.google....
Most helpful comment
I think the google object is attached to the window, so try using window.google.maps....