We do `X == null` all over React core as an idiom for `X == null || typeof X === 'undefined'`.