'How to use jQuery custom widget factory in React JS?

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));


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source