Skip to content

Latest commit

 

History

History

9 - Immutability in JS

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Immutability in JavaScript

ReactCasts, episode 9.

In this episode I'll talk about why immutability is important and how it can benefit you. I will draw some comparisons between JavaScript (which doesn't treat data as immutable by default) and programming languages that have immutability built in. Finally, I will show how to make immutable operations in plain Javascript.

Screencast video: https://youtu.be/4LzcQyZ9JOU

Outline

  • What is Immutability and why it's important.
  • JavaScript non-destructive Array methods
  • Spread Operator
  • External Libraries

Build & Run Instructions

  1. To build and run the code in this directory, ensure you have npm installed

  2. Install

npm install
  1. Start the application
npm start