Skip to content

Commit 437cc16

Browse files
authored
Update server-router.tsx
1 parent 513fdc3 commit 437cc16

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/server-router.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ export default class ServerRouter extends Router {
99
Router: ServerRouter
1010
};
1111
}
12+
1213
render() {
1314
return (
14-
<div>
15+
<React.Fragment>
1516
{this.props.children ? this.props.children : <this.state.Component {...this.state.componentProps} />}
1617
<script id="__react-router-async" dangerouslySetInnerHTML={{ __html: `window.__REACT_ROUTER_ASYNC__=${JSON.stringify({
1718
state: this.state
1819
})};`}} />
19-
</div>
20+
</React.Fragment>
2021
)
2122
}
2223
}

0 commit comments

Comments
 (0)