Skip to content

Commit

Permalink
stricter condition following React documentationa
Browse files Browse the repository at this point in the history
  • Loading branch information
nfcampos committed Nov 14, 2016
1 parent c813c25 commit e4f72a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MountedTraversal.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function instEqual(a, b, lenComp) {

export function instHasClassName(inst, className) {
const node = findDOMNode(inst);
if (!node) { // inst renders null
if (node === null) { // inst renders null
return false;
}
if (node.classList) {
Expand Down

0 comments on commit e4f72a2

Please sign in to comment.