From 5c6841c1948bd69544986c1be8833f81c8acdc9e Mon Sep 17 00:00:00 2001 From: Gregor MacLennan Date: Tue, 11 Apr 2017 18:11:58 -0700 Subject: [PATCH] Render null if width or height is 0 or falsy --- index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.jsx b/index.jsx index e7898e7..d9b20a6 100644 --- a/index.jsx +++ b/index.jsx @@ -157,7 +157,7 @@ module.exports = function Dimensions ({ } return (
- {(containerWidth || containerHeight) && + {!(containerWidth || containerHeight) : null ?