Files
no-copy-frontend/src/app/ui/button-test.tsx
T

15 lines
271 B
TypeScript
Raw Normal View History

2025-11-25 17:13:16 +07:00
'use client'
import { testConnect } from '@/app/api/action';
async function clickHandler() {
testConnect();
}
2025-11-26 14:01:35 +07:00
export default function ButtonTest() {
2025-11-25 17:13:16 +07:00
return (
2025-11-26 14:01:35 +07:00
<button className='border-2 cursor-pointer' onClick={() => {
2025-11-25 17:13:16 +07:00
clickHandler();
}}>button</button>
);
}