MCPcopy Create free account
hub / github.com/webdriverio/webdriverio / Counter

Function Counter

e2e/browser-runner/components/PreactComponent.tsx:9–19  ·  view source on GitHub ↗
({ initialCount }: Props)

Source from the content-addressed store, hash-verified

7}
8
9export function Counter({ initialCount }: Props) {
10 const [count, setCount] = useState(initialCount)
11 const increment = () => setCount(count + 1)
12
13 return (
14 <div>
15 Current value: {count}
16 <button onClick={increment}>Increment</button>
17 </div>
18 )
19}
20

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…