I am trying to use @ubilabs/google-maps-react-hooks to use data driven styling by google but I am getting the following error
Error
ERROR in ./node_modules/@ubilabs/google-maps-react-hooks/dist/index.modern.mjs 457:54-62
Can't import the named export 'useState' from non EcmaScript module (only default export is
available)
Code
import React, { useState, useCallback, useRef, useEffect } from "react";
import {
GoogleMapsProvider,
GoogleMapsProviderProps,
useAutocomplete,
useGoogleMap,
} from "@ubilabs/google-maps-react-hooks";