UNPKG
@epic-web/config
Version:
latest (1.24.1)
1.24.1
1.24.0
1.23.0
1.22.0
1.21.3
1.21.2
1.21.1
1.21.0
1.20.1
1.20.0
1.19.0
1.18.3
1.18.2
1.18.1
1.18.0
1.17.2
1.17.1
1.17.0
1.16.5
1.16.4
1.16.3
1.16.2
1.16.1
1.16.0
1.15.0
1.13.0
1.12.2
1.12.1
1.12.0
1.11.3
1.11.2
1.11.1
1.11.0
1.10.0
1.9.2
1.9.1
1.9.0
1.8.0
1.7.5
1.7.4
1.7.3
1.7.2
1.7.1
1.7.0
1.6.0
1.5.4
1.5.3
1.5.2
1.5.1
1.5.0
1.4.0
1.3.9
1.3.8
1.3.7
1.3.6
1.3.5
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
1.2.0
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.0
Reasonable ESLint configs for epic web devs
github.com/epicweb-dev/config
epicweb-dev/config
@epic-web/config
/
fixture
/
app
/
components
/
swizzle.jsx
8 lines
(6 loc)
•
204 B
JSX
View Raw
1
2
3
4
5
6
7
8
import
{ useState }
from
'react'
export
function
Counter
(
) {
const
[count, setCount] =
useState
(
0
)
const
increment
= (
) =>
setCount
(
(
c
) =>
c +
1
)
return
<
button
onClick
=
{increment}
>
{count}
</
button
>
}