Pseudo Random Nonsense Generator

Immutability

ยท note

Immutability

||| ref

immutability and why it is important

There are generally two ways for changing data. The first method is to mutate the data by directly changing the values of a variable. The second method is to replace the data with a new copy of the object that also includes desired changes.

benefits

  • easier undo/redo and time travel
  • tracking changes (like git)
  • determinining when to re-render in React