⬆️ Update dependencies

This commit is contained in:
Alexandre Mouton-Brady
2022-02-09 22:54:09 +01:00
parent 1b9295413b
commit 99ab328aa2
22 changed files with 1021 additions and 694 deletions
+13 -2
View File
@@ -1,8 +1,19 @@
import type { Component } from 'solid-js';
import { Component, createSignal } from 'solid-js';
import './App.scss';
import Counter from './Counter';
const App: Component = () => {
return <h1 class="header">Hello Sass!</h1>;
const [counter, setCounter] = createSignal(0);
setInterval(setCounter, 1000, (c: number) => c + 1);
return (
<>
<div>
<h1 class="header">{counter()}</h1>
</div>
<Counter />
</>
);
};
export default App;
+3
View File
@@ -0,0 +1,3 @@
export default function Counter() {
return <h1>Hello world</h1>;
}