기억의 실마리

기억의 실마리

  • 분류 전체보기 (106) N
    • Dev Logs (9)
    • Frontend (36)
    • Backend (10)
    • Security (1)
    • Serverless (6)
    • Hosting (1)
    • Browser (1)
    • Infra & DevOps (1)
    • Git (6)
    • IDE (2)
    • Computer Science (16)
    • Daily (11) N
    • Cross Platform (2)
    • AI (4)
Today
Yesterday
Total
  • 홈
  • 태그
  • 방명록
RSS 피드
로그인
로그아웃 글쓰기 관리

기억의 실마리

컨텐츠 검색

태그

OpenAPI Next.js 개발자 회고 TinyMCE 바이브코딩 회고 커스텀훅 api 자동 생성 리액트훅 GEO AI개발 Flutter react custom hook claude code customHook 오픈소스기여 react hook hooks 프론트엔드

최근글

댓글

공지사항

아카이브

hooks(2)

  • [ React Hook ] 4. usePreventLeave

    # usePreventLeave의 기능 export const usePreventLeave = () => { const listener = (event) => { event.preventDefault(); event.returnValue = ""; }; const enablePrevent = () => window.addEventListener("beforeunload", listener); const disablePrevent = () => window.removeEventListener("beforeunload", listener); return { enablePrevent, disablePrevent };};usePreve..

    2022.11.02
  • [ React Hook ] 1. useInput

    # useInput의 기능 import {useState} from "react";export const useInput = (initialValue, validator) => { const [value, setValue] = useState(initialValue); const onChange = event => { const { target: {value} } = event; let willUpdate = true; if (typeof validator === "function") { willUpdate = validator(value); } if (willUpdat..

    2022.10.30
이전
1
다음
티스토리
© 2018 TISTORY. All rights reserved.

티스토리툴바