16 lines
254 B
TypeScript
16 lines
254 B
TypeScript
'use client'
|
|
|
|
import { testConnect } from '@/app/api/action';
|
|
|
|
async function clickHandler() {
|
|
console.log('click');
|
|
testConnect();
|
|
}
|
|
|
|
export default function Button() {
|
|
return (
|
|
<button onClick={() => {
|
|
clickHandler();
|
|
}}>button</button>
|
|
);
|
|
} |