Skip to content

8. Consider using a library for immutability

Robin Karlsson edited this page Feb 21, 2023 · 1 revision

Consider using a library for immutability: To simplify the process of creating new objects with updated values, you can use a library for immutability, such as Immutable.js or Immer. These libraries provide easy-to-use APIs for creating new objects with updated values while keeping the original objects unchanged.