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 Dec 12, 2016
1 parent c7f972e commit 735b7ce
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 @@ -48,7 +48,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 735b7ce

Please sign in to comment.