I'm building a React app that has a Leaflet map and integrates the Leaflet Timedimension Plugin.
The goal is to have a map that has some Circles, those changes radius and color whenever the Timedimension plugin loads a new time.
I've successfully created a map that has some Circles that changes based on the Timedimension plugin times (currentTimeIndex changes whenever a new time is loaded), but the colour wouldn't change.
The following code it's my approach to the problem:
data.map((region) =>
region.items.map((market) => (
<Circle
center={[market.lat, market.lon]}
radius={values[currentTimeIndex]}
pane='markets'
key={market.id}
color={colors[currentTimeIndex]}
/>
)),
)
Is possible to change the color of the Circle without having to remove and re-add them?
I'll leave here the codesandbox with the full code.

