Skip to content

Commit

Permalink
Merge pull request #613 from dhis2/portal-root
Browse files Browse the repository at this point in the history
feat(portal-root): add root element for react portals
  • Loading branch information
varl authored Aug 24, 2021
2 parents c0f8d5b + 6c781f7 commit 3b95e7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion shell/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<div id="dhis2-app-root"></div>
<div id="dhis2-portal-root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
Expand Down
2 changes: 1 addition & 1 deletion shell/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ReactDOM.render(
<CssReset />
<App />
</>,
document.getElementById('root')
document.getElementById('dhis2-app-root')
)

// If you want your app to work offline and load faster, you can change
Expand Down

0 comments on commit 3b95e7c

Please sign in to comment.