JSFiddle - React, Tailwind, and code Playground

HTML

<script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.0.4/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="http://current.bootstrapcdn.com/bootstrap-v204/css/bootstrap.min.css">
<br />
<br />
<br />
<br />
<br />
<p class="btn popover-link" data-title="Popover" data-content="Content"
data-placement="right" data-trigger="manual" rel="popover">Lorem</p>
<br />
<br />
<br />
<br />
<br />
<p class="btn popover-link" data-title="Popover" data-content="Content"
data-placement="right" data-trigger="manual" rel="popover">Lorem</p>
<br />
<br />
<br />
<br />
<br />
<p class="btn popover-link" data-title="Popover" data-content="Content"
data-placement="right" data-trigger="manual" rel="popover">Lorem</p>

CSS

html, body {
    background: #EEF;
}

JavaScript

$('.popover-link').each(function () {
    $(this).click(function () {
        $(this).popover('show');
    });
});

$('body').on('click', function (e) {
    $('.popover-link').each(function () {
        if (!($(this).is(e.target) || $(this).has(e.target).length > 0) && $(this).siblings('.popover').length !== 0 && $(this).siblings('.popover').has(e.target).length === 0) {
            $(this).popover('hide');
        }

    });
});