要使用它,请react-devtools全局安装软件包: npminstall-greact-devtools 现在react-devtools从终端运行以启动独立的DevTools应用程序: react-devtools