UNPKG

@ray-core/redbox-react

Version:

A redbox (rsod) component to display your errors.

22 lines (15 loc) 902 B
# redbox-react [![Build Status](https://travis-ci.org/commissure/redbox-react.svg?branch=master)](https://travis-ci.org/commissure/redbox-react) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) The red box (aka red screen of death) renders an error in this “pretty” format: <img src="http://i.imgur.com/9Jhlibk.png" alt="red screen of death" width="700" /> ## Usage Catch an error and give it to `redbox-react`. Works great with - [react-transform-catch-errors] - [Example][react-transform-example] - [react-transform-boilerplate] - [react-hot-loader] - :warning: ️ based on `3.0.0-beta.2`! This depends on `ErrorBoundaries` which will likely not land in react! You should probably not use this before 3.0.0 comes out. - [Example][react-hot-loader-example]