creact-visualizer
v1.0.24
Published
NPM Package
Downloads
7
Readme
C-React
Custom Renderer & Visualizer for Modern React
C-React is an open-source tool that marks and visualizes concurrent rendering patterns on web pages, differentiates between server-side rendered and client-side rendered components, and displays performance metrics.
Getting Started
Download NPM Package
- Install
creact-visualizer
via NPM:
npm install creact-visualizer
- Import
cRender
into your root file:
import cRender from 'creact-visualizer';
- Render your root component using the
cRender
:
import React from 'react';
import App from './App';
import cRender from 'creact-visualizer';
const root = document.getElementById('root');
cRender(
<React.StrictMode>
<App />
</React.StrictMode>,
root
);
C-React Chrome DevTool
Install C-React DevTool from the Chrome Web Store
Open your React application, or any website
Open Chrome Developer Tools and click on the C-React panel
Watch the tree update dynamically as you navigate through your web page