JSFiddle - React, Tailwind, and code Playground

HTML

<textarea id="log" cols="100" rows="100"></textarea>

JavaScript

$.getScript('https://api-maps.yandex.ru/2.1/?lang=ru_RU', function(){
            ymaps.ready(function(){
                ymaps.geolocation.get({
                    provider: 'yandex'
                    ,autoReverseGeocode: true
                }).then(function (result) {
                    
                    var data = result.geoObjects.get(0).properties.get('metaDataProperty');
                    $('#log').text(JSON.stringify(data));
                });
            });
});