Either way, the recommended way of connecting deck.gl with Mapbox is through React Map GL. Those docs describe how to use Maplibre GL here [1] and here [2].
[0]: https://deck.gl/docs/get-started/using-with-map#using-deckgl...
[1]: https://visgl.github.io/react-map-gl/docs/get-started/mapbox...
[2]: https://visgl.github.io/react-map-gl/docs/get-started/get-st...