You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
371 B
17 lines
371 B
2 years ago
|
export let state = {
|
||
|
count: 0
|
||
|
}
|
||
|
|
||
|
export def increment
|
||
|
state.count++
|
||
|
|
||
|
tag app
|
||
|
<self@click=increment> "count is {state.count}"
|
||
|
css d:inline-block us:none cursor:pointer fs:6 p:2.5 5 rd:2.5
|
||
|
tween:box-shadow 250ms, background-color 250ms
|
||
|
ff:Arial c:black/87 bg:indigo4 bxs:xs
|
||
|
@hover bg:indigo3 bxs:lg
|
||
|
|
||
|
if import.meta.env.MODE is 'development'
|
||
|
imba.mount <app>
|