How to bind the following code in React component? So that I can call the widget with the checkbox onChange method.
React >>
<Checkbox className="checkBox"/>
Widget >>
(function ($) {
$.widget("custom.clicker", {
_create: function () {
alert("Testing widget")
}
});
}(jQuery));