summaryrefslogtreecommitdiff
path: root/src/components/counter.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/counter.tsx')
-rw-r--r--src/components/counter.tsx12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/components/counter.tsx b/src/components/counter.tsx
index 0e540b8..2122b75 100644
--- a/src/components/counter.tsx
+++ b/src/components/counter.tsx
@@ -1,11 +1,17 @@
-'use client';
+"use client";
-import { useState } from 'react';
+import { testFn, testLogin } from "@/actions/test";
+import { useState } from "react";
export const Counter = () => {
const [count, setCount] = useState(0);
- const handleIncrement = () => setCount((c) => c + 1);
+ const handleIncrement = async () => {
+ setCount((c) => c + 1);
+ const res = await testFn("rofl");
+ console.log({ res });
+ const oof = testLogin({ name: "yago", creds: "xd" });
+ };
return (
<section className="border-blue-400 -mx-4 mt-4 rounded-sm border border-dashed p-4">