JSFiddle - React, Tailwind, and code Playground HTML <span id="s">Текст</span> JavaScript var a = $('#s').text(); alert(a);