1.0.4 • Published 5 years ago

react-render-component v1.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

React Render Component

Tiny wrapper around React.createElement with support for dumb components and null.

Install

$ npm install --save react-render-component

Usage

import * as React from 'react';
import renderComponent from 'react-render-component';

renderComponent ( null ); // Not supported by React.createElement
renderComponent ( <div>I'm dumb</div> ); // Not supported by React.createElement
renderComponent ( 'a', { href: '#' }, 'link' );
renderComponent ( () => <div>Stateless</div> );
renderComponent ( class extends React.Component {
  render () {
    return <div>Class</div>
  }
});

License

MIT © Fabio Spampinato

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

7 years ago