Closed natefaubion closed 7 years ago
This works better than removeAttribute
too? I guess maybe that doesn't work because properties aren't attributes?
It has edge cases, but it does the same thing as other libraries (which would have the same edge cases). I don't think the answer is to treat props as attributes. I think the answer it to just use attributes more often if it's a problem.
I've decided to use
void 0
, since this is equivalent to other props implementations in various JS virtual-dom libraries. Otherwise we should probably be using attributes more, rather than props.