react-clean-props

Clean your React props

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
react-clean-props
1.0.06 years ago6 years agoMinified + gzip package size for react-clean-props in KB

Readme

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