redux-cube-with-immutable
Version:
redux-cube's pluggable module for react-immutable
49 lines (38 loc) • 1.54 kB
Markdown
[< Back to Project WebCube](https://github.com/dexteryy/Project-WebCube/)
[![NPM Version][npm-image]][npm-url]
<!-- [![Build Status][travis-image]][travis-url]
[![Dependencies Status][dep-image]][dep-url] -->
[![Nodei][nodei-image]][npm-url]
[]: https://img.shields.io/npm/v/redux-cube-with-immutable.svg
[]: https://nodei.co/npm/redux-cube-with-immutable.png?downloads=true
[]: https://npmjs.org/package/redux-cube-with-immutable
<!--
[]: https://img.shields.io/travis/dexteryy/redux-cube-with-immutable/master.svg
[]: https://travis-ci.org/dexteryy/redux-cube-with-immutable
[]: https://david-dm.org/dexteryy/redux-cube-with-immutable.svg
[]: https://david-dm.org/dexteryy/redux-cube-with-immutable
-->
[](https://github.com/dexteryy/Project-WebCube/tree/master/packages/redux-cube)'s pluggable module for [redux-immutable](https://www.npmjs.com/package/redux-immutable)
```
npm install --save redux-cube-with-immutable
```
> NOTE: redux-cube-with-immutable cannot be used with [redux-cube-with-persist](https://github.com/dexteryy/Project-WebCube/tree/master/packages/redux-cube-with-persist)
```js
// xxx/App.jsx
import { createApp } from 'redux-cube';
import withImmutable from 'redux-cube-with-immutable';
import withRouter from 'redux-cube-with-router';
@createApp(withImmutable(withRouter({
reducers: {
// ...
},
// ...
}))))
class SubApp extends PureComponent {
render() {
// ...
}
}
```