JSFiddle - React, Tailwind, and code Playground

by Steven Lambert

HTML

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<div class="wrapper">
  <button class="add">Add Row</button>
</div>

JavaScript

var index = 1;

$('.add').click(function(e) {
	var $el = $('<div>new row: ' + index++ +'</div>').hide();
	$('.wrapper').append($el);
  $el.fadeIn();
});