JSFiddle - React, Tailwind, and code Playground JavaScript function foo() { alert( this.name ); } var fn = foo.bind({ name: 'some' }); fn();