mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
19 lines
310 B
TypeScript
19 lines
310 B
TypeScript
import { actionFoo } from '../actions'
|
|
|
|
export default function Page() {
|
|
return (
|
|
<button
|
|
onClick={() => {
|
|
actionFoo().then((v) => console.log(v))
|
|
}}
|
|
>
|
|
hello
|
|
</button>
|
|
)
|
|
}
|
|
|
|
// Keep route as dynamic
|
|
export async function getServerSideProps() {
|
|
return { props: {} }
|
|
}
|