A higher-order component for keeping Immutable objects outside your presentational components
yarn add with-immutable-props-to-js
npm install with-immutable-props-to-js
This library also lists
immutable as peer dependencies, so make sure they are installed in your project as well.
import withImmutablePropsToJS from 'with-immutable-props-to-js'
If you're not using ECMAScript modules:
const withImmutablePropsToJS = require('with-immutable-props-to-js').default
You can read about the rationale for this higher-order component here.
For information on how to contribute to this project, check out the contributing guide.
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
Special thanks to Carol Skelly for donating the 'tophat' GitHub organization.