Skip to content

Commit

Permalink
Chore: Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
FIameCaster authored Aug 2, 2023
1 parent ae3530d commit 7baedeb
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 20 deletions.
34 changes: 17 additions & 17 deletions example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"preview": "vite preview"
},
"devDependencies": {
"typescript": "^4.9.3",
"typescript": "^5.1.6",
"vite": "^4.2.0"
},
"dependencies": {
"tsx-vanilla": "^0.1.2"
"tsx-vanilla": "^1.0.0"
}
}
3 changes: 2 additions & 1 deletion example/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { element, fragment, ref } from 'tsx-vanilla'
import { element, fragment, ref, addSVGSupport } from 'tsx-vanilla'
import { Counter } from './counter'

// Static elements should probably be in HTML-files
// This example is just a demonstation of the different features

addSVGSupport()
document.getElementById('app')!.append(
<h1>tsx-vanilla</h1>,
<Counter />,
Expand Down

0 comments on commit 7baedeb

Please sign in to comment.