• This repository has been archived on 13/Apr/2023
  • Stars
    star
    104
  • Rank 330,604 (Top 7 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 9 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🔧 Render debugger for React

React Render Debugger

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

Decorator/higher-order function 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-debugger

Usage

Import and apply to any React component you want to start monitoring:

import React, { Component } from 'react';
import debugRender from 'react-render-debugger';

// Use with the decorator syntax (experimental)
@debugRender
class DecoratedComponent extends Component {
    render () {
        // ...
    }
}

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

const WrappedPlainComponent = debugRender(PlainCompoent);

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

More Repositories

1

today-i-learned

📖 Software engineer's diary
D2
9
star
2

pocketable

🚋 Personal timetable app for London Underground built with React Native
JavaScript
5
star
3

weekplanner

🚧 Work in progress 🚧 Hybrid of a calendar and a kanban board
JavaScript
3
star
4

electron-ledger-webhid-prototype

An example Electron app which uses Ledger WebHID transport on the renderer process
JavaScript
2
star
5

mark-as-read-confluence-extension

A Google Chrome extension that adds "Mark as read" capability to Confluence navigation
JavaScript
2
star
6

electron-link-opener

Electron link opener sandbox
JavaScript
1
star
7

euro-way

Static snapshot of my dad's company website
HTML
1
star
8

cloudinum.tech

Landing page
HTML
1
star
9

home-assistant

My HomeAssistant config
1
star
10

typescript-intro-tasks

TypeScript
1
star
11

expense-tracker

🚧 Work in progress 🚧 Expense tracking app written in React/Redux - playground for experimenting with automated tests
JavaScript
1
star
12

typescript-wdio-boilerplate

TypeScript boilerplate for WebDriverIO
JavaScript
1
star
13

ybeta.dev

My web development consultancy landing page
HTML
1
star
14

react-native-demo-app

Demo of React Native built for a brown bag session
JavaScript
1
star
15

algorithms-data-structures

💡 Algorithms and data structures in JS
JavaScript
1
star
16

air-quality-map

🏗️ Work in progress 🚧 Air Quality Map web app built with Serverless
JavaScript
1
star
17

react-render-visualizer-decorator

DEPRECATED! Old react-render-debugger repository
JavaScript
1
star
18

typescript-intro-slides

JavaScript
1
star
19

snippets

JavaScript
1
star
20

smk-monkey

Utility written with Playwright to automate filling in work reports in a legacy web app for resident doctors in Poland
TypeScript
1
star
21

front-end-testing-fundamentals

Front-end testing fundamentals workshop tasks
JavaScript
1
star
22

settings

My OS and application settings
Shell
1
star
23

ing-transaction-parser

A little utility to transform my bank statement CSV to expense tracking sheet format
TypeScript
1
star
24

mockayo

Mock HTTP server with simple configuration and UI to control the server behaviour
JavaScript
1
star