Skip to main content

Command Palette

Search for a command to run...

react source code debug 过程

Updated
1 min readView as Markdown

clone react sourcecode

how to contribute

切到分支17.9.2

yarn build react/index,react-dom/index --type=UMD
# 不需要 yarn install
# chrome dev tool 选中元素
# you can click on a DOM element, when you click on a DOM element, “== $0” appears after it.
# $0 等效 document.querySelector 选中的元素

$0

dev tool 源代码,按esc,出现控制台,可以打印源代码运行过程中设置的变量 `$0.xxx`

鼠标悬浮方法名上,显示详情,显示方法跳转链接

breakpoints 右键,可以 disable 所有 breakpoints

More from this blog

EddieQiao's blog

84 posts

coder, work in suzhou