Skip to content

Commit 8de8045

Browse files
committed
Update index.tsx
1 parent 144deb7 commit 8de8045

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/client/app/index.tsx

-16
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,7 @@
11
import { render } from "@solid-js/web";
22
import { Route, Router } from "@solid-js/router";
3-
import { createSignal, type JSXElement } from "@solid-js";
43
import { Home } from './pages/home/index.tsx';
54

6-
function App() : JSXElement {
7-
const [count, setCount] = createSignal(1);
8-
const increment = () => setCount(count => count + 1);
9-
10-
return (
11-
<div class='app'>
12-
<h1 class='title'>Home</h1>
13-
<img class='logo' src='/static/solidjs_logo.svg' alt='SolidJS Logo' />
14-
<button type='button' onClick={increment}>
15-
{count()}
16-
</button>
17-
</div>
18-
);
19-
}
20-
215
const root = globalThis.document.getElementById("root")
226
if (!root) {
237
throw new Error('No root element found.')

0 commit comments

Comments
 (0)