react
-
Styled-Components / React 리액트 스타일 컴포넌트 공부하기React/Styled-Components 2023. 2. 20. 16:47
📌 설치하기 vscode 터미널에 npm i styled-components js file에 임포트해준다 : import styled from "styled-components" 📌 사용하기 : Html + CSS vs Styled-Components 비교 import styled from "styled-components"; const Father = styled.div` display: flex; `; const BoxOne = styled.div` background-color: red; width: 100px; height: 100px; `; const BoxTwo = styled.div` background-color: blue; width: 100px; height: 100px; `; cons..