New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-render-visualizer-decorator

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-render-visualizer-decorator

Render visualizer decorator for ReactJS

  • 0.4.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Deprecated!

This repo is depreacted. The library was renamed to react-render-debugger and is available here: https://github.com/marcin-mazurek/react-render-debugger


React Render Visualizer Decorator

A visual way to see what is (re)rendering and why.

Decorator (experimental ES201x syntax) version ported from https://github.com/redsunsoft/react-render-visualizer

Learn more about the experimental decorator syntax.

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 visualizeRender from 'react-render-visualizer-decorator';

// Use with the decorator syntax (experimental)
@visualizeRender
export default class TodoItem extends Component {
    render () {
        // ...
    }
}

// Or simply passing the component to the function
class TodoItem extends Component {
    render () {
        // ...
    }
}

export default visualizeRender(TodoItem);

Component will show up with a blue border box when being monitored.

Demo

See a demo page: http://react-render-visualizer-decorator.netlify.com/

Similar libraries

Keywords

FAQs

Package last updated on 28 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc