Skip to content

Commit 1d25df5

Browse files
committed
Added timer as a state example
- added timer to the App component - simplified babel config
1 parent 5af2984 commit 1d25df5

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.babelrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"presets": [
33
"solid",
4-
"@babel/preset-typescript"
4+
"@babel/typescript"
55
],
66
"env": {
77
"test": {
88
"presets": [
99
[
10-
"@babel/preset-env",
10+
"@babel/env",
1111
{
1212
"targets": {
1313
"node": true

src/components/App.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ const App: Component = () => {
1212
<header class="App-header">
1313
<img src={logo} class="App-logo" alt="logo" />
1414
<p>
15-
Edit <code>src/App.tsx</code> and save to reload.
16-
</p>
17-
<p>
18-
Timer is <code>{count()}</code>.
15+
Edit <code>src/App.tsx</code> and save to reload. <code>{count()}</code> and counting...
1916
</p>
2017
<a class="App-link" href="https://solidjs.com" target="_blank" rel="noopener noreferrer">
2118
<img src={wordmark} class="App-wordmark" alt="wordmark" />

0 commit comments

Comments
 (0)