Skip to content

Commit

Permalink
feat: updated basic example package
Browse files Browse the repository at this point in the history
  • Loading branch information
htmujahid committed Mar 31, 2024
1 parent c5ee77d commit b339d5d
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 75 deletions.
2 changes: 1 addition & 1 deletion examples/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"vite": "^5.2.6"
},
"dependencies": {
"@sonnetjs/core": "^0.0.1"
"@sonnetjs/core": "^0.0.4"
}
}
2 changes: 1 addition & 1 deletion examples/basic/src/Counter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const Counter = () => {
.type('button')
.innerText(`count is ${counter}`)
.className('btn')
.callback((el) => {
.js((el) => {
el.addEventListener("click", () => {
counter += 1;
buttonRef.current.innerText = `count is ${counter}`
Expand Down
101 changes: 30 additions & 71 deletions package-lock.json

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

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"packageManager": "[email protected]",
"workspaces": [
"apps/*",
"packages/*",
"examples/*"
"packages/*"
]
}

0 comments on commit b339d5d

Please sign in to comment.