I have some HTML that needs custom attributes with no value dependent on the situation.. for example these are all valid:
<div className="playlist-row" selected>
<div className="playlist-row" active>
<div className="playlist-row">
i tried doing something like
let customAttr = {'active'}; // incorrect syntax
let customAttr = {'active': true}; //doesn't work
let customAttr = {'active': ''}; //doesn't work
<div className="playlist-row" {...customAttr}>
Any ideas of how I can get this to work?