JSFiddle - React, Tailwind, and code Playground

HTML

<input name="option" type="radio"/>
<input name="option" type="radio" value="pop"/>

<div class="wrapper">text</div>

JavaScript

$('input:radio[name="option"]').click(function() {
    var $this = $(this);
    if ( $this.val() == "pop" ) {
        $this.nextAll('.wrapper').show();
    } else {
        $this.nextAll('.wrapper').hide();
    }
});