From 3489889be84711d9569f6271c2c6aa8039f981c4 Mon Sep 17 00:00:00 2001 From: Chris Lawton <chris.lawton@torchbox.com> Date: Wed, 9 Jan 2019 09:52:55 +0000 Subject: [PATCH] swap div for fragment --- opentech/static_src/src/app/src/App.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opentech/static_src/src/app/src/App.js b/opentech/static_src/src/app/src/App.js index b0468f3dd..5382959cb 100644 --- a/opentech/static_src/src/app/src/App.js +++ b/opentech/static_src/src/app/src/App.js @@ -25,11 +25,11 @@ class App extends React.Component { render() { return ( - <div> + <> <Switcher selector='react-switcher' open={this.state.detailOpen} handleOpen={this.detailOpen} handleClose={this.detailClose} /> <div style={this.state.style} ref={this.setOriginalContentRef} dangerouslySetInnerHTML={{ __html: this.props.pageContent }} /> {this.state.detailOpen && <div><h2>THIS IS REACT</h2></div>} - </div> + </> ) } } -- GitLab