在 Chrome 或者 Firefox 中安装扩展 React Devtools 可以让你在浏览器开发者工具中查看 React 的组件树。 可以在 React DevTools 中检查 React 组件的 state 和 props。