1. ์ปดํฌ๋ํธ ๋ง๋ค๊ธฐ · GitBook (vlpt.us)
1. ์ปดํฌ๋ํธ ๋ง๋ค๊ธฐ · GitBook
1. ์ปดํฌ๋ํธ ๋ง๋ค๊ธฐ ํฌ๋๋ฆฌ์คํธ์ ๊ธฐ๋ฅ์ ๊ตฌํํ๊ธฐ ์ ์, ์ฐ๋ฆฌ ํ๋ก์ ํธ์์ ํ์ํ ๋ชจ๋ ์ปดํฌ๋ํธ๋ค์ UI ๋ฅผ ๋ฏธ๋ฆฌ ๋ง๋ค์ด๋ณด๊ฒ ์ต๋๋ค. ์ฐ์ create-react-app ์ ์ฌ์ฉํ์ฌ ์๋ก์ด ํ๋ก์ ํธ๋ฅผ ๋ง๋ค์ด
react.vlpt.us
์ด ๊ธ์ ์ฐธ๊ณ ํ์ฌ ํ์ ์คํฌ๋ฆฝํธ๋ก ํฌ๋๋ฆฌ์คํธ๋ฅผ ๋ง๋ค์ด๋ณด๋ ค๊ณ ํ๋ค.
ํด๋น ๊ธ์ ์๋ฐ์คํฌ๋ฆฝํธ ๊ธฐ์ค์ด์ฌ์ ๊ทธ๋๋ก ๋ฐ๋ผํ๋ฉด ์ ๋๋ค.
react-icons ์ค์น๋ถํฐ ๋ฌ๋ผ์ ๋งํ๋ฒ๋ฆฐ ๊น์, ๊ธฐ๋กํ๋ฉด์ ํด๋ณธ๋ค.
โ react-icons, styled-components ์ค์น
https://www.npmjs.com/package/styled-components
styled-components
Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress. Latest version: 5.3.5, last published: 4 months ago. Start using styled-components in your project by running `npm i styled-components`. There are
www.npmjs.com
https://yarnpkg.com/package/react-icons
https://yarnpkg.com/package/react-icons
Fast, reliable, and secure dependency management.
yarnpkg.com
https://ko-de-dev-green.tistory.com/74?category=865864
Typescript์ React npm ๋ชจ๋ ์ค์น๊ด๋ จ ์ ๋ณด.
Typescript์ React npm ๋ชจ๋ ์ค์น ๊ด๋ จ ์ ๋ณด. ๊ฐ๋ฐ์์ ๊ดํ ๊ด์ฌ์ด ๋ง์์ง๋ฉด์, ์์ฐ์ค๋ฝ๊ฒ ์ฝ๋ฉ์ ์ ํ๋ ๋ถ๋ค์ด ๋ง์์ง๊ณ , ํ๋ฐํธ์๋์ ํ์ํ ํ๋ก๊ทธ๋๋ฐ ์ธ์ด, ๋ผ์ด๋ธ๋ฌ๋ฆฌ ํน์ ํ๋ ์์ํฌ
ko-de-dev-green.tistory.com
ํจํค์ง ์ค์นํ ๋๋ ์ฌ๊ธฐ์ ๊ฒ์ํด๋ณด๊ณ , ํ์ ์คํฌ๋ฆฝํธ์ ๋ง๋ ๋ช ๋ น์ด๋ฅผ ์ฃผ๋๊ฒ ๋ง์ ํธํ๋ค.
์ค์นํ ๋ ๋ณด๋ฉด DT, TS ๋ผ๊ณ ์ ํ์๋ ๋ถ๋ถ์ด ์๋ค.
TS : ๊ณง๋ฐ๋ก ์ค์น ๊ฐ๋ฅ
DT : ์ถ๊ฐ ์ค์น ํ์
yarn add react-icons
yarn add styled-components
yarn add @types/styled-components
๊ฒฐ๊ณผ์ ์ผ๋ก react-icons(TS), styled-components(DT)๋ ์ด๋ ๊ฒ ์ค์นํ๋ฉด ๋๋ค.