title: How to use jQuery custom widget factory in React JS?
body: <p>How to bind the following code in React component? So that I can call the widget with the <strong>checkbox onChange method</strong>.</p>
  <p>React &gt;&gt;</p>
  <pre><code>&lt;Checkbox className=&quot;checkBox&quot;/&gt;
  </code></pre>
  <p>Widget &gt;&gt;</p>
  <pre><code>(function ($) {
          $.widget(&quot;custom.clicker&quot;, {
              _create: function () {
                  alert(&quot;Testing widget&quot;)
              }
          });
  }(jQuery));
  </code></pre>