Skip to content

Commit 6f36daf

Browse files
committed
Add the use client directive for SSR
1 parent be0d9aa commit 6f36daf

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"use client";
2+
13
import {ChangeEvent, KeyboardEvent, useCallback, useMemo, useRef, useState} from "react";
24

35
import {PhoneNumber, usePhoneOptions} from "./types";

src/styles.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"use client";
2+
13
export const jsonToCss = (stylesheet: object) => {
24
/** Convert the given `stylesheet` object to raw CSS */
35
return Object.entries(stylesheet).map(([selector, rules]) => {

src/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"use client";
2+
13
export interface PhoneNumber {
24
countryCode?: number | null;
35
areaCode?: string | null;

0 commit comments

Comments
 (0)