This commit is contained in:
hailin 2025-03-14 00:02:25 +08:00
parent f4344e0e67
commit c5ca910e51
1 changed files with 2 additions and 0 deletions

View File

@ -1,3 +1,5 @@
"use client"
import { useEffect, useState } from "react";
export const useLocalStorage = <T>(key: string, initialValue: T): [T, (value: T) => void] => {