JSFiddle - React, Tailwind, and code Playground

by Dmitri Ganenco

HTML

<div id="location-id">
       blah-blah-blah
</div>

CSS

.masonrow {
display: flex;
flex-direction: column;
flex-wrap: wrap;
max-height: 700px;}

.item {
display: inline-block;}


.well {
position: relative;
display: block;
padding: 0;}

TypeScript

const documentt = document.getElementById("location-id");
let location: string = "";
debugger;
if (documentt) {
    location = documentt.innerText;
}

$.ajax({
    url: url,
    type: "GET",
    data: location,
    contentType: "application/json; charset=utf-8"
});