CSS module
* css파일의 확장자를 .module.css
로 바꾸면 된다.
className
을 설정 할 때에는 styles.Button
이렇게 import
로 불러 온 styles
객체 안에 있는 값을 참조하면 된다.styled-components
* 현존하는 CSS in JS 관련 리액트 라이브러리 중에서 가장 인기 있는 라이브러리
$ yarn add styled-components
*
import React from 'react';
import styled from 'styled-components';
const Circle = styled.div`
width: 5rem;
height: 5rem;
background: black;
border-radius: 50%;
`;
function App() {
return <Circle />;
}
export default App;
```
* polished 라이브러리
chocolatey (윈도우전용 패키지 매니저)
* 설치
// Chocolatey 설치하기
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
// 설치 확인하기
choco -?
```
* sudo 설치 (관리자권한 - superuser do, 줄여서 sudo)
```
$ choco install sudo