Immer can be installed as a direct dependency, and will work in any ES5 environment:
yarn add immer
npm install immer
- CDN: Exposed global is
Proxy is not available. For example, when running Microsoft Internet Explorer or React Native (if < v0.59 or when using the Hermes engine) on Android. In such cases, Immer will fallback to an ES5 compatible implementation which works identically, but is a bit slower.