Skip to content

Commit 7857efb

Browse files
committed
fix(): useState requires 2 args
1 parent a05aea9 commit 7857efb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/test/src/Pages/Layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { createPortal, useState } from "@next-tsx/core";
22
import MyModal from "../Components/MyModal";
33

44
export default function Layout() {
5-
const [a] = useState<string | null>(null);
5+
const [a, _setA] = useState<string | null>(null);
66

77
return (
88
<>

0 commit comments

Comments
 (0)