JSFiddle - React, Tailwind, and code Playground

by Greg Bowler

HTML

<p>Example of using the hash to control client-side page content, without requesting the content from the server.

<p><a href="#hash1">Click this link</a> to make the content appear below.
    
<div id="content">
    <p id="hash1">Look at me!
</div>

CSS

#content * {
    display: none;
}

#content *:target {
    display: block;
}