๐Ÿš€ ๋ธ”๋กœ๊ทธ ์ด์ „ํ–ˆ์Šต๋‹ˆ๋‹ค.

SERIES

2 PostsยทLast updated on June 30, 2022

React.js๋Š” ์™œ ์“ธ๊นŒ?

June 20, 2022

React ํŠน์ง• JavaScript Frontend Framework(Library) ์‚ฌ์šฉ์ž ์ธํ„ฐํŽ˜์ด์Šค๋ฅผ ๊ตฌ์ถ•ํ•˜๊ธฐ ์œ„ํ•œ ์„ ์–ธ์ ์ด๊ณ  ํšจ์œจ์ ์ด๋ฉฐ ์œ ์—ฐํ•œ JavaScript ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ โ€œ์ปดํฌ๋„ŒํŠธโ€๋ผ๊ณ  ๋ถˆ๋ฆฌ๋Š” ์ž‘๊ณ  ๊ณ ๋ฆฝ๋œ ์ฝ”๋“œ์˜ ํŒŒํŽธ์„ ์ด์šฉํ•˜์—ฌ ๋ณต์žกํ•œ UI๋ฅผ ๊ตฌ์„ฑํ•˜๋„๋ก ๋•์Šต๋‹ˆ๋‹ค. SPA(Single Page Application) Component ๊ธฐ๋ฐ˜ Virtโ€ฆ


React hooks์— ๋Œ€ํ•ด ์•Œ์•„๋ณด์ž

June 30, 2022

React hooks๋ž€? ํ•จ์ˆ˜ํ˜• ์ปดํฌ๋„ŒํŠธ์—์„œ ๊ธฐ๋Šฅ์„ ์ถ”๊ฐ€ํ•  ๋•Œ ์‚ฌ์šฉํ•˜๋Š” ํ•จ์ˆ˜๋“ค 1. useEffect ์ปดํฌ๋„ŒํŠธ๊ฐ€ ๋งˆ์šดํŠธ ๋์„ ๋•Œ(์ฒ˜์Œ ๋‚˜ํƒ€๋‚ฌ์„ ๋•Œ), ์–ธ๋งˆ์šดํŠธ ๋์„ ๋•Œ(์‚ฌ๋ผ์งˆ ๋•Œ), ๊ทธ๋ฆฌ๊ณ  ์—…๋ฐ์ดํŠธ ๋  ๋•Œ(ํŠน์ • props๊ฐ€ ๋ฐ”๋€” ๋•Œ) ์‹คํ–‰๋˜๋Š” hook API ํ˜ธ์ถœ, ์ด๋ฒคํŠธ ์ฒ˜๋ฆฌ ๋“ฑ์„ ์ฒ˜๋ฆฌํ•  ๋•Œ ์‚ฌ์šฉ 2. useMemo ์ด์ „์— ๊ณ„์‚ฐ ํ•œ ๊ฐ’(๋žœ๋”๋งํ•œ ํ•จ์ˆ˜ โ€ฆ