✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚾️ It's finally Baseball season! Root for the home team... & Register for our Sports Analytics Webinar!

[REACT] Fitbounds Mapbox in chloropleth maps

Hello,

I’m looking into fitting my chloropleth map in Mapbox.
According to the Mapbox docs, you can pass an array of coordinates to a fitBounds parameter :

However I can not figure out where to pass the option since in plotly React you create a component looking like :
<Plot
data={data}
layout={layout}
config={{mapboxAccessToken: token}}
style={style}
/>

Where do you add the coordinates array in the Plot wrapper as the fitBounds option ? In layout ? config ?

Thank you for your help