JSFiddle - React, Tailwind, and code Playground

HTML

<section id="section1">Section1</section>
<section id="section2">Section2</section>
<section id="section3">Section3</section>
<section id="section4">Section4</section>

JavaScript

$(document).ready(function() {
  $('body > section').next().hide();
  $('body > section').append('<div class="next">next</div>');
    $('.next').click(function () {
      if($(this).parent().next().length != 0) {
        $(this).parent().hide();
        $(this).parent().next().show();
      }
    });
});