Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 608 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 608 Bytes

Build Status

react-poop

react-poop wraps your stateless functions and the render method of your components into a try/catch block and renders a 💩 when something goes wrong.

Installation

npm i react-poop --save

Usage

import React from 'react'
import { render } from 'react-dom'
import poop from 'react-poop'

const App = poop(() => <div>Hello react-poop</div>)

render(<App />, document.getElementById('app'))

Test

npm test