JSFiddle - React, Tailwind, and code Playground
HTML
<section>
<h2>Test Title 1</h2>
<p>Test Paragraph 1<p>
<a href="test link1">test link 1</a>
</section>
<section>
<h2>Test Title 2</h2>
<p>Test Paragraph 2<p>
<a href="test link2">test link 2</a>
</section>
<section>
<h2>Test Title 3</h2>
<p>Test Paragraph 3<p>
<a href="test link3">test link 3</a>
</section>
CSS
section {
display: none;
}
JavaScript
$("section").eq(Math.floor(Math.random() * 3)).css("display", "block");