react-component-identity
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

React Component Identity

A component that always renders it's children.

In very few occations this component can make your code look better.

Install

npm install --save react-component-identity

Usage

import Identity from 'react-component-identity';
import MyComponent from './my_component';
 
// The following:
 
<MyComponent />
 
// Would result in the same html as
 
<Identity>
  <MyComponent />
</Identity>

License

MIT © Fabio Spampinato

Package Sidebar

Install

npm i react-component-identity

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

5.64 kB

Total Files

8

Last publish

Collaborators

  • fabiospampinato