Permalink
Browse files

@phenomic/plugin-renderer-react: (reason) Remove unneeded div around …

…bodyRenderer (#1231)
  • Loading branch information...
ulrikstrid authored and MoOx committed Feb 26, 2018
1 parent 81f914d commit 9c6fb6627cb6b075267f367b0a0d3541975da38d
Showing with 1 addition and 7 deletions.
  1. +1 −7 packages/plugin-renderer-react/src/bodyRenderer.re
@@ -60,11 +60,5 @@ let make = (~body: jsBody, _children) => {
}
| Empty => ReasonReact.nullElement
};
{
...component,
render: _self => {
let tree = jsTreeToReason(body);
<div> (renderChild(tree)) </div>;
}
};
{...component, render: _self => body |> jsTreeToReason |> renderChild};
};

0 comments on commit 9c6fb66

Please sign in to comment.