Torch for new way

  • 홈
  • 태그
  • 방명록

React 1

error record : styled-compoenents

styled components를 통해 함수형 컴포넌트들을 배치하려고 하는데, input에 뭘 적을 때 마다 focus가 풀리더라. focus() 함수 등 이런저런 방법을 사용해봤지만 소용이 없었고, 진짜 이유를 찾는데 오래 걸려 기록해 두기로 했다. 문제가 있는 코드는 다음과 같았다. // ... 앞쪽 코드는 생략 export function Calculator() { const CalculateModule = styled.div` ... > input { ... } ` // ...중략 return ( ) } 문제는 styled-components를 이용해 만든 element 코드 블럭의 위치였다. 저게 함수형 컴포넌트 안에 있으니 문제가 발생했던 것 같다. 내가 input에 값을 입력 > state ..

React 2023.03.19
이전
1
다음
더보기
프로필사진

Torch for new way

  • 분류 전체보기
    • DID study
    • Blockchain
    • React
    • Nodejs
      • Node.js Set up
      • JS Basic
      • Server
      • DB
      • 기타
      • 암호화
    • CSS
    • Solidity
    • shell script
    • 기타
    • Algorithm

Tag

styled-components, cryptozombie, React, Blockchain, error, remote-ssh, Go, ethersjs, telethon, 채굴, googlelogin, TypeScript, hardhat, oauth login, Abstract Factory, docker, Ethereum, Design Pattern, solidity, Googling,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • 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 :
GitHub PortFolio

Copyright © Kakao Corp. All rights reserved.

티스토리툴바