Skip to content

Commit

Permalink
render react root element to #content div
Browse files Browse the repository at this point in the history
  • Loading branch information
nosovsh committed Oct 19, 2015
1 parent 16df7c3 commit 911d2b9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion entry.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,7 @@ function createElement(Component, props) {
return <Component {...props} flux={flux} />;
}

ReactDOM.render(<Router history={ history } createElement={ createElement } onUpdate={ onUpdate }>{ routes }</Router>, document.body);
ReactDOM.render(
<Router history={ history } createElement={ createElement } onUpdate={ onUpdate }>{ routes }</Router>,
document.getElementById('content')
);

0 comments on commit 911d2b9

Please sign in to comment.