Utility for creating components which accept the `as` prop in React
npm install react-render-as



This library lets you easily create components which take an as prop to change which component they should render as
``sh`
npm i --save react-render-as
`jsx
import { renderAs } from 'react-render-as';
const SomeComponent = ({ name }) => (
const Bold = renderAs('b');
(
(
(
(
$3
`jsx
import { withAs } from 'react-render-as';const Table = ({ children }) => children;
export default withAs(Table, 'table');
``