반응형
Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- css
- forEach
- swiper
- SQLD
- JavaScript
- classList
- Hover
- React
- scrollY
- 스크롤
- Sticky
- input
- Animation
- scroll
- swiperjs
- html
- 반복문
- localstorage
- 이벤트리스너
- pointermove
- 애니메이션
- For
- NodeList
- getBoundingClientRect
- mousemove
- addEventListener
- scrollevent
- ADsP
- insertAdjacentHTML
- 가로스크롤
Archives
- Today
- Total
목록styled-components (1)
ZeroToHunnit Coding
[React] 6일차 일기
styled-components라는 것과 useEffect 공부했음! 1. styled-components 설치 방법 - npm install styled-components를 터미널에 쓰면 된다. 설치되면 import styled from 'styled-components'하면 됨. 2. 변수에 담아서 styled.요소`css코드작성` 3. 컴포넌트를 생성해주는 문법이기 때문에 변수 첫글자는 대문자로 해주기 4. styled-components의 장점 1) css파일 안열어도 됨 2) 스타일이 다른 js파일로 간섭되지 않음. (원래 App.css는 모든 파일에 간섭함) * App.module.css 이렇게 쓰면 App.js에만 css파일 적용됨 3) css파일이 필요가 없으니까 페이지 로딩시간이 단축됨..
React 일기
2024. 1. 19. 22:35