UNPKG
create-seia-app
Version:
latest (0.1.4)
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
Create Seia.js apps with one command
seia.dev
abiriadev/seia
create-seia-app
/
templates
/
javascript
/
src
/
Counter.jsx
14 lines
(10 loc)
•
244 B
JSX
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use client'
import
{ useState }
from
'react'
export
const
Counter
= (
) => {
const
[count, setCount] =
useState
(
0
)
return
(
<
button
onClick
=
{()
=>
setCount(count + 1)}> {count === 0 ? 'Click me!' : `Count: ${count}`}
</
button
>
) }