next.js/test/e2e/app-dir/actions/app/dynamic-csr/csr.js
csr.js12 lines247 B
'use client'

import { inc } from '../client/actions'
import { useState } from 'react'

export function CSR() {
  const [count, setCount] = useState(0)
  return (
    <button onClick={async () => setCount(await inc(count))}>{count}</button>
  )
}
Quest for Codev2.0.0
/
SIGN IN