A legacy React addon providing a simple immutability helper, `update()`, for updating nested objects and arrays in an immutable fashion using MongoDB-like query syntax. Version 15.6.3 is the last release; it is no longer maintained and is deprecated. Recommended replacement is `immutability-helper` v1.0.0+ (drop-in). The library is ESM and CJS compatible. Key differentiator: syntactic sugar over manual shallow copying with `$set`, `$push`, `$splice`, etc. Not recommended for new code due to deprecation.
npm install react-addons-updateNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use update() to immutably set a nested value and push to an array, with result logging.
npm install immutability-helper and replace imports with import update from 'immutability-helper'
Always provide the complete path to the target field, e.g., update(obj, {a: {b: {$set: 3}}})Use $splice: [[index, deleteCount, ...items]] instead of $splice: [index, deleteCount, ...items]
Ensure the target is an object, and use $set for fine-grained control.
Use npm import/require instead of script tag; upgrade to immutability-helper.
Use import update from 'react-addons-update' (no curly braces).
Ensure all command keys start with '$' (e.g., $set, $push).
Switch to immutability-helper for continued support.
Ensure the target path exists and ends with an array; initialize empty array if needed.
Only use update() on objects or arrays; for primitives assign directly.
No dependency data recorded yet.