Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Commit

Permalink
Use a more idiomatic React outlet
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathaningram committed Oct 4, 2017
1 parent 9444186 commit 7c4fb24
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion helpers/testdata/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<title>cloud.gov dashboard</title>
</head>
<body>
<div class="js-app"></div>
<div id="root"></div>

<script>
(function (GA_TRACKING_ID) {
Expand Down
2 changes: 1 addition & 1 deletion static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<title>cloud.gov dashboard</title>
</head>
<body>
<div class="js-app"></div>
<div id="root"></div>

<script>
(function (GA_TRACKING_ID) {
Expand Down
3 changes: 2 additions & 1 deletion static_src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@ const cRouter = {
};

initCSRFHeader(document.querySelector('meta[name="gorilla.csrf.Token"]'));
cRouter.run(routes, document.querySelector('.js-app'));

cRouter.run(routes, document.getElementById('root'));

0 comments on commit 7c4fb24

Please sign in to comment.