React custom hook - useInput 정성들여 깎기
개인프로젝트의 useInput 커스텀 훅을 보다가 좀 더 재사용 가능하게 고치고싶어졌다.
기존 코드
import { useState } from "react";
import { InputValue } from "../../../data/type/type";
export const useInput = (initialValue: InputValue) => {
const [inputValue, setInputValue] = useState<In...
1nxeo.hashnode.dev6 min read