React Setup
๊ตฌ์ฑ
styled-components
recoil
react-router-dom
react-hook-form
react-query
CRA Installation (w/TS)
npx create-react-app my-app --template typescript
Packages
npm i styled-components
// Type definition
npm i --seve-dev @types/styled-components
npm i react-router-dom
npm i recoil
npm i react-hook-form
npm i react-query
ํด๋๊ตฌ์กฐ
๊ฐ๋จํ ์ดํ๋ฆฌ์ผ์ด์ ์ ๋ง๋ค ๋๋ ํด๋ ๊ตฌ์กฐ๊ฐ ๊ทธ๋ฆฌ ์ค์ํ์ง ์์์ผ๋ ์ ์ฐจ ๋ณต์กํด์ง๋ฉด์ ๊ตฌ์กฐ๋ฅผ ์ ์ํ ํ์์ฑ์ ๋๋
์์ง ํฐ ํ๋ก์ ํธ๋ฅผ ๊ฒฝํํด๋ณด์ง ๋ชป ํ๊ธฐ ๋๋ฌธ์ ์ผ๋จ์ ๋ด ๊ฒฝํ์ ํ ๋๋ก ๊ณตํต ์ปดํฌ๋ํธ๋ค์ ๋นผ์ ๊ด๋ฆฌํ๋ ๊ฒ๋ถํฐ ์์ํด๋ณด๊ธฐ๋ก ํ์.
public/
index.html
src/
App.tsx
index.tsx
api/
api.ts
components/ -- ๊ณตํต ์ปดํฌ๋ํธ ๊ด๋ฆฌ
Button.tsx
Input.tsx
Home/ -- ํน์ ํ์ด์ง์์๋ง ์ฌ์ฉ๋๋ ์ปดํฌ๋ํธ ๊ด๋ฆฌ
ImgCard.tsx
pages/ -- ์ปดํฌ๋ํธ๋ก ๊ตฌ์ฑ๋ ํ์ด์ง ๊ด๋ฆฌ
LogIn.tsx
Home.tsx
routes/ -- router ๊ด๋ฆฌ
router.ts
recoil/ -- atoms ๊ด๋ฆฌ
atom.ts
styles/ -- style ๊ด๋ จ ํ์ผ ๊ด๋ฆฌ
GlobalStyle.ts
styled.d.ts
theme.ts
Last updated