Programming/React

[ React ] ๊ฐœ์ธ ํ”„๋กœ์ ํŠธ ๋ฆฌ์•กํŠธ ๊ฐœ๋ฐœํ™˜๊ฒฝ ์…‹ํŒ…

seulye 2022. 7. 14. 10:30

Node.js ์„ค์น˜

Node.js (nodejs.org)

 

Node.js

Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.

nodejs.org

 

Yarn ์„ค์น˜

Installation | Yarn (yarnpkg.com)

 

Yarn

Fast, reliable, and secure dependency management.

classic.yarnpkg.com

 

Visual Studio Code ์„ค์น˜

Visual Studio Code - Code Editing. Redefined

 

Visual Studio Code - Code Editing. Redefined

Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications.  Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows.

code.visualstudio.com

 

Visual Studio Code Plug-in ์„ค์น˜

className Completion in CSS CSS ์ž๋™์™„์„ฑ
CSS Formatter CSS ์ž๋™ ์ค„๋งž์ถค
Doxygen Documentation Generator ํ•จ์ˆ˜ ์ฃผ์„ ์ž๋™ ์ƒ์„ฑ
Git History Git ์ด๋ ฅ ํ‘œ์‹œ
GitLens — Git supercharged Git ์‚ฌ์šฉ ํŽธ์˜์„ฑ
Guides ๋“ค์—ฌ์“ฐ๊ธฐ ๊ฐ€์ด๋“œ๋ผ์ธ์„ ๊ทธ๋ ค์ค๋‹ˆ๋‹ค.
Korean(์‚ฌ์šฉ๋ฒ•) Language Pack for Visual Studio Code ํ•œ๊ตญ์–ด ์–ธ์–ดํŒฉ
Prettier - Code formatter ์ฝ”๋“œ ์ƒ‰ ํ‘œ์‹œ ๋ฐ ์ •๋ ฌ
React Extension Pack ๋ฆฌ์•กํŠธ ํŽธ์˜ ๊ธฐ๋Šฅ ๋ชจ์Œ
Reactjs code snippets, ESLint, npm, JavaScript (ES6) code snippets, Search node_modules, Npm Intellisense, Path Intellisense
Relative Path ์ƒ๋Œ€ ๊ฒฝ๋กœ์— ์žˆ๋Š” ํŒŒ์ผ ๊ฒฝ๋กœ๋ฅผ ํŽธํ•˜๊ฒŒ ์ž‘์„ฑํ•  ์ˆ˜ ์žˆ๋Š” ๋„๊ตฌ
Visual Studio IntelliCode ์ฝ”๋“œ ์ž๋™์™„์„ฑ ์ถ”์ฒœ
vscode-js-import import ๊ธฐ๋Šฅ
Reactjs code snippets ๋ฆฌ์—‘ํŠธ ์ฝ”๋“œ ์ž๋™์™„์„ฑ
ESLint ๋ฌธ๋ฒ• ๊ฒ€์‚ฌ
npm npm ์ง€์›
JavaScript (ES6) code snippets JavaScript (ES6) ์ฝ”๋“œ ์ž๋™์™„์„ฑ
Search node_modules ๋…ธ๋“œ ๋ชจ๋“ˆ ๊ฒ€์ƒ‰
Npm Intellisense import ํŒจํ‚ค์ง€ ์ž๋™์™„์„ฑ
Path Intellisense import ๊ฒฝ๋กœ ์ž๋™์™„์„ฑ

 

Visual Studio Code ์„ค์ •

 

Chrome - Tool ์„ค์น˜

https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=ko 

 

React Developer Tools

Adds React debugging tools to the Chrome Developer Tools. Created from revision 7f673317f on 5/31/2022.

chrome.google.com

https://chrome.google.com/webstore/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd?hl=ko 

 

Redux DevTools

Redux DevTools for debugging application's state changes.

chrome.google.com

 

์ƒˆ ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ

npx create-react-app test
npx create-react-app test --template typescript

์ €๋Š” C๋“œ๋ผ์ด๋ธŒ์— test ๋กœ ์ƒ์„ฑํ–ˆ์Šต๋‹ˆ๋‹ค. ํƒ€์ž…์Šคํฌ๋ฆฝํŠธ๋กœ ์ƒ์„ฑํ•˜๋ ค๋ฉด ๋ฐ‘์— ์žˆ๋Š” ์ฝ”๋“œ๋ฅผ ์‹คํ–‰ํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค. 

 

VSCode๋กœ ํ•ด๋‹น ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์—ด์–ด๋ณด๋ฉด ์ด๋ ‡๊ฒŒ ๋ณด์ž…๋‹ˆ๋‹ค. 

 

yarn start

VSCode์—์„œ ํ„ฐ๋ฏธ๋„์„ ์—ด์–ด์„œ yarn start๋ฅผ ์ž…๋ ฅํ•ด์ค๋‹ˆ๋‹ค. 

 

์ด ํ™”๋ฉด์ด ๋œจ๋ฉด ์™„๋ฃŒ!

 

MUI ์„ค์น˜

npm install @mui/material @emotion/react @emotion/styled

https://mui.com/

 

MUI: The React component library you always wanted

MUI provides a simple, customizable, and accessible library of React components. Follow your own design system, or start with Material Design. You will develop React applications faster.

mui.com