@zippytech/react-clean-props

2.0.3 • Public • Published

react-clean-props

Install

$ npm install @zippytech/react-clean-props

Usage

import cleanProps from '@zippytech/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

Apache2

Readme

Keywords

Package Sidebar

Install

npm i @zippytech/react-clean-props

Weekly Downloads

17

Version

2.0.3

License

Apache-2.0

Last publish

Collaborators

  • zippyui