JSFiddle - React, Tailwind, and code Playground
HTML
<a href="#box1">Click Me</a>
<div id="box1">test test</div>
CSS
#box1 {
display:none;
}
#box1:target {
display:block;
}
<a href="#box1">Click Me</a>
<div id="box1">test test</div>
#box1 {
display:none;
}
#box1:target {
display:block;
}