JSFiddle - React, Tailwind, and code Playground

HTML

<button class="btn-delete-row">Test button</button>

JavaScript

var defaultState = {
  'foo': 'bar'
}

var usersController = (function() {
  var state = {},

    init = function(defaultState) {
      state = defaultState;

      $(".btn-delete-row").on("click", function() {
        var recordId = $(this).attr("data-record-id");
        showDeleteConfirmation(recordId);
      });
    },

    showDeleteConfirmation = function(recordId) {
      console.log('state',state)
    };

  return {
    init: init
  };
})();

usersController.init(defaultState)