Good morning I know there is a duplicate but the proposed solution does not work, I would like to put a simple Legend with MapContainer, can you give an you give me a hand, to make the legend component with react leaflet 3.x?
Versionn React-Leaflet 3.1.0 This is my map
<MapContainer
style={{ height: 480, width: "97.5%" }}
zoom={2}
center={[30.09, 51.505]}
scrollWheelZoom={false}
fadeAnimation={true}
markerZoomAnimation={true}
>
<TileLayer
url={urlLayer}
test="http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
/>
<Legend />
<CircleMarker
center={[51.505, -0.09]}
color={"#000000"}
fillColor={"#FDD876"}
stroke={true}
fillOpacity={true}
weight={1}
>
<Popup>
A pretty CSS3 popup. <br /> Easily customizable.
</Popup>
</CircleMarker>
</MapContainer>