/safe-render

safely render react components

Primary LanguageJavaScript

safe-render

Usage:

import React, { Component } from 'react';
import safeRender from 'safe-render';

class App extends Component {

  @safeRender
  render() {
    throw new Error("Whoa");
  }
}

image