新的 React Developer Tools 0.14 發布

jopen 9年前發布 | 36K 次閱讀 React Native

一個月前,新的React開發者工具發布了beta版。今天發布了new devtools的第一個穩定版,版號為0.14,但它是一個完整重寫的版本,所以我們認為它更像是一個2.0版本。

Video/screenshot of new devtools

它包含了一些新的功能, 包括:

  • 完全采用React開發,讓其更易于開發和擴展
  • Firefox 支持
  • Selected component instance is available as $r from the console
  • More detail is shown in props in the component tree
  • Right-click any node and choose "Show Source" to jump to the render method in the Sources panel
  • Right-click any props or state value to make it available as $tmp from the console
  • Full React Native support

安裝

Download the new devtools from the Chrome Web Store and on Mozilla Add-ons for Firefox. If you're developing using React, we highly recommend installing these devtools.

If you already have the Chrome extension installed, it should autoupdate within the next week. You can also head to chrome://extensions and click "Update extensions now" if you'd like to get the new version today. If you installed the devtools beta, please remove it and switch back to the version from the store to make sure you always get the latest updates and bug fixes.

If you run into any issues, please post them on our react-devtools GitHub repo.

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!