Reduce size of API; remove helpers

This commit is contained in:
Nicolas Gallagher
2015-09-01 14:43:05 -07:00
parent 000bbf9f93
commit d3dce675df
4 changed files with 2 additions and 51 deletions
-34
View File
@@ -112,40 +112,6 @@ const buttonStyle = {
}
```
The styling strategy can be applied directly to non-SDK elements:
```js
import { stylingStrategy } from 'react-web-sdk';
class Example extends React.Component {
render() {
return (
<div {...stylingStrategy({
style: {
opacity: 0.5
}
})} />
);
}
}
```
## Utilities
#### `getOtherProps(reactComponentInstance)`
Returns an object containing all the props from `this.props` that are not
defined in `propTypes`.
#### `omitProps(obj, arrayOfExcludedProps)`
Returns an object with the specified props excluded.
#### `pickProps(obj, arrayOfIncludedProps)`
Returns an object with the specified props included.
## Development
```