react-component-from-prop
Creates a component that accepts a component as a prop and renders it with the remaining props.
This project is a just fork from recompose .
yarn add react-component-from-prop
Usage
// e. g., const Anchor = AnchordefaultProps = component: 'a' <Anchor component=Link to="/foo">Click</Anchor> // <a href="/foo">Click</a>
License
© sugarshin