An open API service indexing awesome lists of open source software.

https://github.com/sgnh/react-children-proptype

This is a simple package for validating React children
https://github.com/sgnh/react-children-proptype

javascript npm props proptype-validators proptypes react

Last synced: about 1 month ago
JSON representation

This is a simple package for validating React children

Awesome Lists containing this project

README

          

# react-children-proptype

This is a simple package for validating React children.

## Installation
```
npm install --save react-children-proptype
```

## Example
```javascript
import childrenPropType from 'react-children-proptype';

const MyComponent = ({children}) => (


My Component


{children}

);

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