question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding a classList property on included components synchronised with domNode.classList would be nice to have. Now that I think about this it’s the same as <div class={' '.join(classList)}>, but it will look much cleaner, don’t you think?

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
sophiebitscommented, Nov 9, 2013

classSet is now available as React.addons.classSet (not inlined at transform time, but is otherwise good).

0reactions
zpaocommented, Dec 20, 2013

I’m going to say we should stay away from this for now and just use helpers (like the one @spicyj mentioned now exists)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Element.classList - Web APIs | MDN
The Element.classList is a read-only property that returns a live DOMTokenList collection of the class attributes of the element.
Read more >
HTML DOM Element classList Property
The classList property returns the CSS classnames of an element. ... The classList property is read-only, but you can use the methods listed...
Read more >
Literally Everything You Need To Know About classList
In this article I want to show you everything that is possible with classList since it will make working with classes in JavaScript...
Read more >
JavaScript classList() property and methods explained
The classList property is a property of an HTML element that holds the class names ... If you want to manipulate the HTML...
Read more >
The .classList() API
Hi , I created a loop for h2 to display 5 times but now I want to style it with a class. When...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found