2.0.0 • Published 7 years ago

react-children-proptype v2.0.0

Weekly downloads
3
License
MIT
Repository
-
Last release
7 years ago

react-children-proptype

This is a simple package for validating React children.

Installation

npm install --save react-children-proptype

Example

import childrenPropType from 'react-children-proptype';

const MyComponent = ({children}) => (
  <div>
    <h1>My Component</h1>
    {children}
  </div>
);

MyComponent.propTypes = {
  children: childrenPropType,
};
2.0.0

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago