profile
Hello all ๐Ÿ‘‹๐Ÿป ๐Ÿ“London

React - virtual DOM

In javascript, I used to use DOM manipulation (querySelector, getElementById getElementByClassName etc) But in React, should use "Virtual DOM" so that

2022๋…„ 2์›” 22์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

React - react-dom

jsx ์ปดํฌ๋„ŒํŠธ ํŒŒ์ผ์ด ๋ฐ”๋ฒจ์„ ์ด์šฉํ•ด ๋ธŒ๋ผ์šฐ์ €๊ฐ€ ์ดํ•ดํ•  ์ˆ˜ ์žˆ๋Š” ์ˆœ์ˆ˜ js๋กœ ๋ณ€ํ™˜์„ ํ–ˆ๊ณ ,๋ณ€ํ™˜๋œ jsํŒŒ์ผ์„ html๋กœ ์—ฐ๊ฒฐํ•˜๋ ค๋ฉด, react-dom์ด ํ•„์š”ํ•˜๋‹ค. ์ด๋Š” ReactDOM ํด๋ž˜์Šค ์•ˆ render ํ•จ์ˆ˜๋ฅผ ์ด์šฉํ•ด, ์—ฐ๊ฒฐํ•  ์ˆ˜ ์žˆ๋‹ค.renderํ•จ์ˆ˜๋Š” ์ „์ฒด ๋ฌธ์ œ d

2022๋…„ 2์›” 21์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€