npm install react-instrumentation --save
import React from 'react'; import DebugTool from 'react-instrumentation'; const MyComponent = () => { return (); } export default MyComponent;Hello World!
import React from 'react'; import DebugTool from 'react-instrumentation'; class MyComponent extends React.Component { constructor(props) { super(props); this.state = {loading: true}; } componentDidMount() { setTimeout(() => { this.setState({loading: false}); }, 5000); } render() { return (In this example, we have measured the time taken by the component to load using the `setTimeout` function. This can be viewed in the DebugTool along with the component's states and props. Overall, React Instrumentation DebugTool is a useful library for developers to debug and measure the performance of their React applications.); } } export default MyComponent;{this.state.loading ? Loading...:Hello World!
}