JSFiddle - React, Tailwind, and code Playground
JavaScript
if ($lis.find("input[type=radio]:checked").parent().hasClass(".active") === false) {
jQuery(".add_plan_dinominations .next").trigger("click");
} else {
jQuery(".add_plan_dinominations .prev").trigger("click");
}