Skip to content
Snippets Groups Projects
Commit 3489889b authored by Chris Lawton's avatar Chris Lawton
Browse files

swap div for fragment

parent a1eedc2e
No related branches found
Tags v1.23.0
No related merge requests found
...@@ -25,11 +25,11 @@ class App extends React.Component { ...@@ -25,11 +25,11 @@ class App extends React.Component {
render() { render() {
return ( return (
<div> <>
<Switcher selector='react-switcher' open={this.state.detailOpen} handleOpen={this.detailOpen} handleClose={this.detailClose} /> <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 }} /> <div style={this.state.style} ref={this.setOriginalContentRef} dangerouslySetInnerHTML={{ __html: this.props.pageContent }} />
{this.state.detailOpen && <div><h2>THIS IS REACT</h2></div>} {this.state.detailOpen && <div><h2>THIS IS REACT</h2></div>}
</div> </>
) )
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment