JSFiddle - React, Tailwind, and code Playground

by Anton

HTML

<button id="btn" type="button">Press</button>

JavaScript

function thisInStack() {
    $('#btn').click(function() {
        this.noMethod();
        alert('clicked!');
    });
}

thisInStack();