combine-containers
v0.1.3-alpha
Published
![npm](https://img.shields.io/npm/v/combine-containers.svg)
Downloads
10
Readme
combine-containers
Installation
npm install combine-containers --save
Use this function to wrap a component with multiple containers such as react-redux, react-form, material-ui styles etc.
Usage
import { combineContainers } from 'combine-containers';
const ContactDialog = props => (
<div>
...
</div>
);
export default combineContainers(
connect(mapStateToProps, mapDispatchToProps),
reduxForm({
form: 'contactForm',
destroyOnUnmount: false
}),
withStyles(styles, { withTheme: true })
])(ContactDialog);
Includes TypesScript typings.