Skip to content

Commit

Permalink
index: attach app to document.body
Browse files Browse the repository at this point in the history
  • Loading branch information
bdotsamir committed Mar 26, 2024
1 parent 204ee25 commit 44c17a8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

<body>
<noscript>You must enable JavaScript to run this app.</noscript>
<div id="root"></div>

<script src="/src/index.tsx" type="module"></script>
</body>
4 changes: 0 additions & 4 deletions src/css/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,6 @@ input[type=text]:focus, input[type=number]:focus {
color: var(--generic-textinput-text-active);
}

#root {
display: flex;
flex-direction: column;
}

.slider {
cursor: pointer;
Expand Down
8 changes: 1 addition & 7 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,4 @@ import { render } from 'solid-js/web';

import App from './app';

const root = document.getElementById('root');

if (!(root instanceof HTMLElement)) {
throw new Error(`Root element not found.`);
}

render(() => <App />, root);
render(() => <App />, document.body);

0 comments on commit 44c17a8

Please sign in to comment.