JSFiddle - React, Tailwind, and code Playground
HTML
<div>Title <a href="#" class="myanchor">+</a>
<div id="b1">...content...</div></div>
<!--..... n times this structure ....-->
<div>Title <a href="#" class="myanchor">+</a>
<div id="bN">...content...</div></div>
JavaScript
$(function() {
$('a.myanchor').on('click', a);
function a(e) {
e.preventDefault();
$(this).next('div').toggle();
}
});