이것저것 기록장

  • 홈
  • 태그
  • 방명록

custom hook 1

< React > custom Hook 만들기 #2

버튼 2개를 만들어서 각 버튼마다 다른 내용이 뜨게 만들고싶은 컨셉 import { useState } from "react"; import "./styles.css"; const content = [ { tab: "section 1", content: "I'm the content of the section 1" }, { tab: "section 2", content: "I'm the content of the section 2" } ]; const useTabs = (initialTab, allTabs) => { if (!allTabs || !Array.isArray(allTabs)) { return; } const [currentIndex, setCurrentIndex] = u..

개발 2022.06.24
이전
1
다음
더보기
프로필사진

  • 분류 전체보기 (8)
    • book (0)
    • 개발 (8)

Tag

react hook, src, custom hook, react hooks, 리액트 event, 라우터, 차이점, 리액트, HTML, 노마드코더, 자동완성, react event, herf, react, vsCode, 리액트 이벤트, 커스텀 hook 만들기, react hook 만들기, react router, Router,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2026/02   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28

방문자수Total

  • Today :
  • Yesterday :
GitHub

Copyright © Kakao Corp. All rights reserved.

티스토리툴바