JSFiddle - React, Tailwind, and code Playground JavaScript var Foo = function(){}; var bar = new Foo(); console.log(bar instanceof Foo); //true