React Developer Tools
React Developer Tools๋ฅผ ์ฌ์ฉํ์ฌ React ์ปดํฌ๋ํธ๋ฅผ ๊ฒ์ฌํ๊ณ , props์ state๋ฅผ ํธ์งํ ์ ์์ผ๋ฉฐ ์ฑ๋ฅ ๋ฌธ์ ๋ฅผ ์๋ณํ ์ ์์ต๋๋ค.
You will learn
- React Developer Tools ์ค์น ๋ฐฉ๋ฒ
๋ธ๋ผ์ฐ์ ํ์ฅ
React๋ก ๋น๋๋ ์น ์ฌ์ดํธ๋ฅผ ๋๋ฒ๊น ํ๋ ๊ฐ์ฅ ์ฌ์ด ๋ฐฉ๋ฒ์ React Developer Tools ๋ธ๋ผ์ฐ์ ํ์ฅ์ ์ค์นํ๋ ๊ฒ์ ๋๋ค. ๋๋ฆฌ ์ฌ์ฉ๋๋ ์ฌ๋ฌ ๋ธ๋ผ์ฐ์ ์์ ์ฌ์ฉํ ์ ์์ต๋๋ค.
์ค์น๊ฐ ์๋ฃ๋๋ฉด React๋ก ๊ตฌ์ถ๋ ์ฌ์ดํธ์ ๋ฐฉ๋ฌธํ๋ฉด Components and Profiler ํจ๋์ด ํ์๋ฉ๋๋ค.

Safari ๋ฐ ๊ธฐํ ๋ธ๋ผ์ฐ์
๋ค๋ฅธ ๋ธ๋ผ์ฐ์ (์: Safari)์ ๊ฒฝ์ฐ, react-devtools
๋ฅผ npm package๋ก ์ค์นํด์ผ ํฉ๋๋ค
# Yarn
yarn global add react-devtools
# Npm
npm install -g react-devtools
๋ค์์ผ๋ก ํฐ๋ฏธ๋์์ ๊ฐ๋ฐ์ ๋๊ตฌ๋ฅผ ์ฝ๋๋ค
react-devtools
๋ค์์ผ๋ก ๋น์ ์ ์น ์ฌ์ดํธ์ <head>
์ <script>
ํ๊ทธ๋ฅผ ํตํด ์น ์ฌ์ดํธ๋ฅผ ์ฐ๊ฒฐํฉ๋๋ค
<html>
<head>
<script src="http://localhost:8097"></script>
๋ธ๋ผ์ฐ์ ๋ฅผ ์๋ก๊ณ ์นจํ๋ฉด ๊ฐ๋ฐ์ ๋๊ตฌ๋ฅผ ํ์ธํ ์ ์์ต๋๋ค

๋ชจ๋ฐ์ผ (React Native)
React Developer Tools๋ React Native ๋ก ๋ง๋ค์ด์ง ์ฑ์์๋ ์ ๋์ํฉ๋๋ค
React Developer Tools๋ฅผ ์ฌ์ฉํ๋ ๊ฐ์ฅ ์ฌ์ด ๋ฐฉ๋ฒ์ ์ ์ญ์ ์ผ๋ก ์ค์นํ๋ ๊ฒ์ ๋๋ค.
# Yarn
yarn global add react-devtools
# Npm
npm install -g react-devtools
๋ค์์ผ๋ก ํฐ๋ฏธ๋์์ ๊ฐ๋ฐ์ ๋๊ตฌ๋ฅผ ์ฌ์ญ์์ค.
react-devtools
์คํ ์ค์ธ ๋ก์ปฌ React Native ์ฑ์ ์ฐ๊ฒฐํด์ผ ํฉ๋๋ค.
๊ฐ๋ฐ์ ๋๊ตฌ๊ฐ ๋ช ์ด ํ์ ์ฐ๊ฒฐ๋์ง ์์ผ๋ฉด ์ฑ์ ๋ค์ ๋ก๋ํด ๋ณด์ญ์์ค.