We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 144deb7 commit 8de8045Copy full SHA for 8de8045
src/client/app/index.tsx
@@ -1,23 +1,7 @@
1
import { render } from "@solid-js/web";
2
import { Route, Router } from "@solid-js/router";
3
-import { createSignal, type JSXElement } from "@solid-js";
4
import { Home } from './pages/home/index.tsx';
5
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
21
const root = globalThis.document.getElementById("root")
22
if (!root) {
23
throw new Error('No root element found.')
0 commit comments