JSFiddle - React, Tailwind, and code Playground
JavaScript
/* Related to http://jqbug.com/7818 */
var foo = {foo: 'bar', poo: 1};
var $foo = $(foo);
/* Fetch foo.foo, returns 'bar' */
console.log ('foo.foo =', $foo.attr ('foo'));
/* Set a new key, uses native .setAttribute and fails */
//$foo.attr ('baz', 'bazzy');
/* Remove attribute, sets it to '' */
$foo.removeAttr ('poo');
console.log (foo);