useStorageState 
리액트 훅으로, useState처럼 작동하지만 상태 값을 브라우저 저장소에 저장해요. 이 값은 페이지룰 새로고침해도 유지되며, localStorage를 사용할 경우 탭 간에 공유될 수 있어요.
인터페이스 
ts
function useStorageState(
  key: string,
  options: Object
): readonly [
  state: Serializable<T> | undefined,
  setState: (value: SetStateAction<Serializable<T> | undefined>) => void,
  refreshState: () => void,
];파라미터 
- keyrequired · string값을 저장소에 저장하기 위해 사용하는 키예요. 
- optionsObject저장소 동작을 설정하는 옵션이에요. - options.storageStorage · localStorage스토리지 타입 ( localStorage또는sessionStorage). 기본값은localStorage예요.
- options.defaultValueT기존의 값을 찾을 수 없을 때의 초기 값이에요. 
- options.serializerFunction상태 값을 문자열로 직렬화하는 함수예요. 
- options.deserializerFunction상태 값을 문자열에서 역직렬화하는 함수예요. 
 
- options.storageStorage · localStorage
반환 값 
- readonly [state: Serializable<T> | undefined, setState: (value: SetStateAction<Serializable<T> | undefined>) => void, refreshState: () => void]튜플이에요: - stateSerializable<T> | undefined저장소에서 가져온 현재 상태 값이에요. 
- setState(value: SetStateAction<Serializable<T> | undefined>) => void상태를 업데이트하고 지속하는 함수예요. 
- refreshState() => void저장소에서 상태를 새롭게 고치는 함수예요. 
 
- stateSerializable<T> | undefined
예시 
tsx
// 지속되는 상태를 가진 카운터
import { useStorageState } from 'react-simplikit';
function Counter() {
  const [count, setCount] = useStorageState<number>('counter', {
    defaultValue: 0,
  });
  return (
    <button onClick={() => setCount(prev => prev + 1)}>Count: {count}</button>
  );
}