react-clean-props

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i react-clean-props

Weekly Downloads

1,165

Version

1.0.0

License

none

Last publish

Collaborators

  • zippyui