diff --git a/src/Accordion/Accordion.wrapper.js b/src/Accordion/Accordion.wrapper.js index 4a3192ec..6f2f8fde 100644 --- a/src/Accordion/Accordion.wrapper.js +++ b/src/Accordion/Accordion.wrapper.js @@ -37,17 +37,18 @@ class AccordionWrapper extends Component { this.accordionStore.setOnChange(this.props.onChange); } - render() { + renderAccordion = (accordionStore: AccordionContainer) => { const { accordion, onChange, ...rest } = this.props; + return ( + + ); + }; + + render() { return ( - {accordionStore => ( - - )} + {this.renderAccordion} );