UNPKG

@epic-web/config

Version:

Reasonable ESLint configs for epic web devs

8 lines (6 loc) 204 B
import { useState } from 'react' export function Counter() { const [count, setCount] = useState(0) const increment = () => setCount((c) => c + 1) return <button onClick={increment}>{count}</button> }