From 71b6385e1fdee1d760a4a03a92a3a37a1f85e106 Mon Sep 17 00:00:00 2001 From: Jeff Hicken Date: Thu, 4 Mar 2021 15:58:08 -0700 Subject: [PATCH] Get rid on the extra div There is not really a need for the wrapping div when there are multiple children. Putting these children in a React.Fragment removes the need for the wrapper. --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index b8a2999..f52157f 100644 --- a/lib/index.js +++ b/lib/index.js @@ -186,7 +186,7 @@ class DocumentMeta extends Component { return count === 1 ? ( React.Children.only(children) ) : count ? ( -
{this.props.children}
+ {this.props.children} ) : null; } }