react-leaflet-div-icon
react-leaflet-div-icon copied to clipboard
Updates to className not propagated to DOM
My JSX looks like this:
<DivIcon
position={[lat, lon]}
className={expanded?"xxx":"yyy"}
>
<p>whatever</p>
</DivIcon>
Only the initial className is rendered (e.g "xxx" if expanded===true
) but then updating this property to false does not refresh the DOM.