pedrojpj/recompose-extends

View on GitHub
example/withChildren.js

Summary

Maintainability
A
0 mins
Test Coverage
import React from 'react';
import { compose, pure } from 'recompose';

import { withChildren } from '../src';

const View = ({ ComponentButton }) => <div>{ComponentButton}</div>;

export default compose(withChildren(['button']), pure)(View);