react-proptypes
Utility function for cutting back on repetitive code.
import rpt from 'react.proptypes';
static propTypes = rpt({
username: 'string',
age: 'number',
handleChange: 'func',
minor: 'bool',
});
import rpt from 'react.proptypes';
static propTypes = rpt({
username: 'string',
age: 'number',
handleChange: 'func',
minor: 'bool',
});
npm i react.proptypes
3
2.0.0
ISC