1.0.0 • Published 8 years ago
react-clean-props v1.0.0
react-clean-props
Install
$ npm install react-clean-props
Usage
import cleanProps from 'react-clean-props'
class App extends React.Component {
render() {
const props = cleanProps(this.props, App.propTypes)
return <div {...props} />
}
}
App.propTypes = {
// all your component props go here
}
License
MIT
1.0.0
8 years ago