Please, read the question two times, this is not a duplicate.
Is it possible to append a div generated by me in JSX to a div automatically generated by leaflet library in React?
<div class="leaflet-top leaflet-left">
Leaflet library automatically creates es div where it stores layers, etc ... I have created my own layer selector and I would like to append it to the div in order to have it with correct alignment. I want to add it to the div beacuse I have mixed layers one is created by leaflet and the other is created by me.
Now I am just positioning my custom layer near the leaflet div, but with different screen ratio/sizes it tends to be not aligned.
Here's is the problem, it is not properly aligned sometimes:
Is there something like :
DOM.writeByClassApend("leaflet-top leaflet-left", MyCustomLayer()}
Or is there a way to achieve this?