I made a tiny (320B) #JavaScript function for conditionally joining class names 10x~20x faster than the alternative!https://git.io/classwrap
-
-
An alternative to JedWatson/classnames. classList imperative API can be awkward to use with a VDOM.
-
Oh lordy; so you're doing string concat and forcing browser to re-parse the whole set!?
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.