JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://api-maps.yandex.ru/2.1/?lang=ru-RU"></script>
<div id="data"/>

CSS

#data {
    width: 300px;
    height: 300px;
    font: 12px Verdana;
}

JavaScript

ymaps.ready(function () {
    ymaps.geolocation.get()
    .then(function (result) {
        document.getElementById('data').innerHTML = JSON.stringify(result.geoObjects.get(0).properties.getAll());
    });
});