JSFiddle - React, Tailwind, and code Playground
by Ford Heacock
JavaScript
function myThing() {
this.handle = function() {
return 'handling';
}
this.previousStep = function(num) {
return num - 1;
}
}
myThing.prototype = {
crazy() {
return 'crazy'
},
amazing() {
return 'amazing'
},
addPrevStepNavLink(el) {
el.on('click', this.previousStep);
}
}
const a = new myThing();
console.log(a.crazy())