JSFiddle - React, Tailwind, and code Playground
HTML
<input type="button" class="list" value="click me"></input>
JavaScript
var echo = function(dataPass) {
$('.list').live('click', function() {
$.ajax({
url: 'http://dummy.restapiexample.com/api/v1/employees'
}).success(function(response) {
console.log(response)
});
});