File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,27 +52,12 @@ react-devtools
5252
5353现在在浏览器里刷新你的网站,你可以在开发者工具里查看它。
5454
55- ![ React Developer Tools standalone ] ( /images/docs/react-devtools-standalone.png )
55+ ![ 独立的 React Developer Tools] ( /images/docs/react-devtools-standalone.png )
5656
5757## 移动端(React Native) {/* mobile-react-native* /}
58- React 开发者工具同样可检查用 [ React Native] ( https://reactnative.dev/ ) 构建的应用程序。
5958
60- 使用 React 开发者工具最简单的办法就是全局安装它:
61- ``` bash
62- # Yarn
63- yarn global add react-devtools
64-
65- # Npm
66- npm install -g react-devtools
67- ```
68-
69- 接下来从终端打开开发者工具:
70- ``` bash
71- react-devtools
72- ```
73-
74- 它应该可以连接到任何正在运行的本地 React Native 应用程序。
75-
76- > 如果几秒钟后开发者工具未连接,请尝试重新加载应用程序。
59+ 你可以使用 [ React Native DevTools] ( https://reactnative.dev/docs/debugging/react-native-devtools ) 来检查 [ React Native] ( https://reactnative.dev/ ) 应用程序,它的内置调试器与 React Developer Tools 进行了深度集成。所有功能与浏览器扩展的工作方式相同,包括本机元素突出显示和选择。
7760
7861[ 了解有关调试 React Native 的更多信息] ( https://reactnative.dev/docs/debugging ) 。
62+
63+ > 对于 React Native 0.76 之前的版本,请按照上面的 [ Safari and other browsers] ( #safari-and-other-browsers ) 指南独立构建 React DevTools。
You can’t perform that action at this time.
0 commit comments