JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/base/jquery-ui.css">
<script src="http://isotope.metafizzy.co/jquery.isotope.min.js"></script>
<div id="wrapperDiv">
    <div class="dialog-modal" title="Basic dialog">hello</div>
    <div class="dialog-modal" title="Basic dialog">hello</div>
    <div class="dialog-modal" title="Basic dialog">hello</div>
    <div class="dialog-modal" title="Basic dialog">hello</div>
    <div class="dialog-modal" title="Basic dialog">hello</div>
</div>

CSS

/* CSS Document */
@charset "UTF-8";

/**** Isotope Filtering ****/

.isotope-item {
    z-index: 2;
}

.isotope-hidden.isotope-item {
    pointer-events: none;
    z-index: 1;
}

/**** Isotope CSS3 transitions ****/

.isotope, .isotope .isotope-item {
    -webkit-transition-duration: 1.0s;
    -moz-transition-duration: 1.0s;
    transition-duration: 1.0s;
}

.isotope {
    -webkit-transition-property: height, width;
    -moz-transition-property: height, width;
    transition-property: height, width;
}

.isotope .isotope-item {
    -webkit-transition-property: -webkit-transform, opacity;
    -moz-transition-property: -moz-transform, opacity;
    transition-property: transform, opacity;
    -webkit-font-smoothing: antialiased;
}

/**** disabling Isotope CSS3 transitions ****/

.isotope.no-transition, .isotope.no-transition .isotope-item, .isotope .isotope-item.no-transition {
    -webkit-transition-duration: 0s;
    -moz-transition-duration: 0s;
    transition-duration: 0s;
}

JavaScript

$(".dialog-modal").dialog({
    resizable: true, // problem: before re-layout is invoked to arrange all items, isotope needs to know the new height or width or both, depending on layout option
    height: 140,
    position: 'center',
    dialogClass: 'console',
    buttons: {
        'Yes': function() {
            $(this).dialog("close").remove(); // removed for reLayout
            $container.isotope('reLayout'); // to re-layout after removal
            return true;
        },
        'No': function() {
            $(this).dialog("close").remove(); // removed for reLayout
            $container.isotope('reLayout'); // to re-layout after removal
            return false;
        }
    }
});

$('.console').appendTo('#wrapperDiv');

var $container = $('#wrapperDiv');
console.log($container);

// 1. does something, but not with resizing the dialog
/*$container.isotope({
    masonryHorizontal: {
        rowHeight: 140
    }
}); */

// 2. does something, but not with resizing the dialog
    $container.isotope({
        itemSelector: '.console',
        masonry: {} // needs width of columns
    });