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

Use a more idiomatic React outlet #1240

Merged
merged 1 commit into from
Oct 4, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'));