React 스타일링 (1) 썸네일형 리스트형 Coding Apple, React 강좌 내용 정리.12 - styled-components styled-components component가 많아지면 css도 관리가 어려워짐 (css in js) 동일한 이름의 class를 넣는다던지 등 먼저 설치해보기 npm install styled-components ... import styled from 'styled-components' 컴포넌트에 직접 스타일넣어서 스타일링하기 className 작명 필요없음 // css를 미리 입려놓은 컴포넌트? let 박스 = styled.div` padding : 20px; border-style: ridge; `; let 제목 = styled.h4` font-size: 25px; font-weight: 800; `; --- 상세페이지 적용 화면 호불호가 갈린다고 한다. 어차피 선택 사항이다. props 를 .. 이전 1 다음