rendering-insights2.0
v1.2.5
Published
This package will give rendering insights for your react component
Downloads
30
Readme
Installtion
npm i rendering-insights2.0Use
Import {Insights} from 'rendering-insights2.0';Wrap your component with Insights component like this at the time of invoking it:
<Insights id="UniqueId">
<YourComponent />
<Insights>
Give the unique id every time. //Here is a simple example
import { Insights } from 'rendering-insights2.0';
const Card = ()=>{
return (
<div className='Card'>
<p className='para1'>This is a card.</p>
</div>
)
}
function App() {
return (
<div className="App">
<Insights id="UniqueId1">
<Card />
</Insights>
<Insights id="UniqueId2">
<Card />
</Insights>
</div>
);
}