Skip to content

Commit c29cf20

Browse files
committed
fix: add missing import in use-page-state-coupling example
1 parent 8384b55 commit c29cf20

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

fundamentals/code-quality/code/examples/use-page-state-coupling.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,11 @@ export function usePageState() {
7878
다음 코드와 같이 각각의 쿼리 파라미터별로 별도의 Hook을 작성할 수 있어요.
7979

8080
```typescript
81-
import { useQueryParam } from "use-query-params";
81+
import { useCallback } from "react";
82+
import {
83+
NumberParam,
84+
useQueryParam
85+
} from "use-query-params";
8286

8387
export function useCardIdQueryParam() {
8488
const [cardId, _setCardId] = useQueryParam("cardId", NumberParam);

0 commit comments

Comments
 (0)