0.0.1 • Published 9 years ago

react-helpers v0.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

React Helpers

npm i react-helpers --save-dev

Methods

filterProps

The filterProps method allows you to specify a prefix and create an object that only contains properties with that prefix, it will also lower-case the value of the string without that prefix. Let's run through the example below.

var props = {
  inputOnChange: true,
  formOnSubmit: true
}

var inputProps = filterProps(props, 'input')
/*
{
  onChange: true
}
*/