JSFiddle - React, Tailwind, and code Playground JavaScript with({ bar: 1}) { this.foo = "test"; alert(bar); alert(this); } alert(foo);