Init solidjs
This commit is contained in:
parent
ba1b1d7080
commit
cd14a32e42
150 changed files with 238 additions and 0 deletions
11
src/components/Counter.tsx
Normal file
11
src/components/Counter.tsx
Normal file
|
@ -0,0 +1,11 @@
|
|||
import { createSignal } from "solid-js";
|
||||
import "./Counter.css";
|
||||
|
||||
export default function Counter() {
|
||||
const [count, setCount] = createSignal(0);
|
||||
return (
|
||||
<button class="increment" onClick={() => setCount(count() + 1)}>
|
||||
Clicks: {count()}
|
||||
</button>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue