next.js/test/e2e/app-dir/app-basepath-custom-server/custom-server/components/counter.js
counter.js15 lines305 B
'use client'
import { useState } from 'react'

export function Counter() {
  const [count, setCount] = useState(0)
  return (
    <div>
      <p id="current-count">Count: {count}</p>
      <button onClick={() => setCount(count + 1)} id="increase-count">
        Increment
      </button>
    </div>
  )
}
Quest for Codev2.0.0
/
SIGN IN