공부하는 김쨔뿌

  • 홈
  • Github
  • 방명록

자바스크립트 2

React styled-component 형제버튼들 중 하나만 클래스 줄 때

상황 -리액트로 styled-component를 사용하여 버튼 커스텀 styled-component를 사용하지 않고 일반적인 버튼태그() 로 사용하는 경우, 그리고 버튼태그에 기본클래스, 선택한 태그에 넣을 클래스 이 두가지만 있거나 선택한 태그에 넣을 클래스만 필요한 경우에는 아래와 같이 하면 된다. const 함수 = (e) => { const siblings = t => [...t.parentElement.children].filter(e => e != t); siblings(e.target).map((x)=>{ x.setAttribute('class',''); }); e.target.classList.add("on"); } const siblings = t => [...t.parentElement..

이것저것 코딩공부 2021.10.15

[JS] 서버 올렸더니 자바스크립트로 구현한 복사 기능 에러 이유

자려고했는데 잊기전에 이건 써야겠다. 1. execCommand("copy"); Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this..

이것저것 코딩공부 2021.09.18
1
더보기
프로필사진

기계공학과 탈주하고 웹디자이너로 1년 일하다가 주니어 프론트엔드 개발자가 되어버린 사람.. 대부분은 헛소리입니다. 주로 코드짜다가 킹받아서 글 씀

  • 분류 전체보기 (119)
    • 이것저것 코딩공부 (23)
      • Vue (4)
      • React (0)
      • 기타 (4)
    • Sparta Coding Club (30)
      • 웹개발 종합반 [항해 99] (5)
      • React 기초반, 심화반 [항해 99] (6)
      • 항해 99 3기 회고 (17)
      • 기타 (2)
    • 잡지식 (3)
    • 게임관련 (0)
    • TIL (39)
    • 프로젝트 (4)
    • 기타 (16)

Tag

실전프로젝트, 항해99, react-quill, 스파르타코딩클럽, 스파르타 코딩 클럽, useState, quill.js, python, 리액트, 닉네임생성기, javascript, vuex, Til, React, 스파르톤, VUE, 자바스크립트, 웹크롤링, 스파르타 코딩클럽, 앱스토어 로그인 오류,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/05   »
일 월 화 수 목 금 토
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 29 30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

연락처: hogugugut4102.off@gmail.com
  • 트위터

티스토리툴바