Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- There isn’t anything to compare
- SCSS
- typescript react
- nextjs
- createGlobalStyle
- API token
- ngrok실행
- API 토큰
- github io
- github
- next.js css
- react env
- input type=file
- styled components
- dart 변수
- getModifierState
- react
- nextjs .env
- CSS
- npm styled-reset
- rewrites
- 컨디셔널 렌더링
- git lab
- bootstrap
- react typescript
- Git
- nextjs 설치
- fetch
- icon
- ngrok설치
Archives
- Today
- Total
목록createGlobalStyle (1)
꾸준히 성장하는 개발자
[React] styled-reset _2 ( createGlobalStyle 전역 스타일로 관리 )
createGlobalStyle - 한 컴포넌트를 만들 수 있게 해 주는데 렌더링 될 때, 그 컴포넌트는 전역 스코프에 스타일을 올려준다 import { createGlobalStyle } from 'styled-components' const GlobalStyle = createGlobalStyle` body { fontSize: 16px; } `; function App() { return ( ); } export default App; GlobalStyle이라는 전역적으로 넣어줄수 있는 컴포넌트를 생성하고 component들 가장 위에 넣어주면 된다. 위처럼 넣어주게 되면 전역적으로 스타일을 넣어준것이다. 모든 body의 폰트 사이즈는 16픽셀이 된다. 이걸 이용해서 초기에 styled-reset을..
React
2022. 6. 7. 17:09