Skip to content

Commit

Permalink
Fix ElementsRenderer name
Browse files Browse the repository at this point in the history
  • Loading branch information
taion committed Sep 8, 2017
1 parent 4c7ea60 commit 81e547a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ElementsRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ function accumulateElement(children, element) {
return React.cloneElement(element, { children });
}

function Renderer({ elements }) {
function ElementsRenderer({ elements }) {
return elements.reduceRight(accumulateElement, null);
}

Renderer.propTypes = propTypes;
ElementsRenderer.propTypes = propTypes;

export default Renderer;
export default ElementsRenderer;

0 comments on commit 81e547a

Please sign in to comment.