@indlekofer/media_container
v0.2.1
Published
media container
Downloads
2
Readme
@indlekofer/media_container
Usage
import GET_SIZE, { REDUCER as MEDIA_REDUCER } from '@indlekofer/media_container';
const mapStateToProps = (state) => {
return {
mediaContainerSize: state[MEDIA_REDUCER].get(GET_SIZE) //mediaContainerSize -> {width: 100, height: 100}
}
}
Function exports
setContainer
setup
unset
config
will set initial values for width and height. will be called automaticaly.