React SDK

A React wrapper for Gebeta Maps that manages the map lifecycle automatically.

React

import { GebetaMap } from '@gebeta/react';
 
function App() {
  return (
    <GebetaMap
      accessToken={accessToken}
      refreshToken={refreshToken}
      style={{ width: '100%', height: '400px' }}
    />
  );
}

TIP

The GebetaMap React component manages the map lifecycle automatically. Use the onReady callback to access the GebetaMaps instance and managers.

On this page