React Render Visualizer Decorator
A visual way to see what is (re)rendering and why.
ES7 decorator version ported from https://github.com/redsunsoft/react-render-visualizer
Features
- Shows when component is being mounted or updated by highlighting (red for mount, yellow for update)
- Shows render count for each component instance
- Shows individual render log for each component instance
Installation
npm install react-render-visualizer-decorator
Usage
Import and apply to any React component you want to start monitoring:
import React, { Component } from 'react';
import visualiseRender from 'react-render-visualiser-decorator';
@visualiseRender
class TodoItem extends Component {
render () {
}
}
Component will show up with a blue border box when being monitored.
Demo