⬆️ Update dependencies
This commit is contained in:
+13
-2
@@ -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;
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
export default function Counter() {
|
||||
return <h1>Hello world</h1>;
|
||||
}
|
||||
Reference in New Issue
Block a user