Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e704503
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is breaking a test where I check multiple classnames, e.g.
scryRenderedDOMComponentsWithClass(root, "classA classB")
. imho we should split className into an array and loop over into its elements.e704503
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it doesn't seem like an optimisation as you unnecessarily create an array, instead of simply manipulating strings
e704503
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed i'm not suggesting an optimization - I'd keep
scryRenderedDOMComponentsWithClass
working with multiple classes. Better said, what isclassName
? The value of theclassName
attribute as in React <=0.13 or a single css class as in the rc1?