JSFiddle - React, Tailwind, and code Playground
HTML
<script src='https://api-maps.yandex.ru/2.1/?lang=ru_RU'></script>
<div id="map"></div>
CSS
#map{
width: 100%;
height: 300px;
}
JavaScript
ymaps.ready(function(){
var map = new ymaps.Map("map", {
center: [51.67255515, 61.91894531],
zoom: 3
});
var place = new ymaps.Placemark(
[56.1327021, 47.2508053], {
hintContent: 'Чебоксары',
iconContent: 'test'
}
);
map.geoObjects.add(place);
place.events.add('click', function (e) {
e.get('target').properties.set('iconContent', "dghsghsd1");
});
});