pedrojpj/recompose-extends

View on GitHub
example/withErrors.js

Summary

Maintainability
A
0 mins
Test Coverage
import React from 'react';
import { compose, pure } from 'recompose';
import { withErrors } from '../src/index';

const WithErrors = ({ example }) => <div>{example()}</div>;

export default compose(withErrors({ debug: true }), pure)(WithErrors);