JSFiddle - React, Tailwind, and code Playground
by skram
HTML
<div class="category-info">
<p>text 1</p><hr><p>text 2</p>
</div>
CSS
.news-part { color: blue; }
JavaScript
$('.category-info hr').next().wrap('<div class="news-part" />');