JSFiddle - React, Tailwind, and code Playground
JavaScript
var foo = function () {
console.log( ++this.count );
}.bind({count: 0});
var bar = function () {
console.log( ++this.count );
}.bind({count: 0});
foo(); // 1
bar(); // 1
foo(); // 2
var foo = function () {
console.log( ++this.count );
}.bind({count: 0});
var bar = function () {
console.log( ++this.count );
}.bind({count: 0});
foo(); // 1
bar(); // 1
foo(); // 2