PowerBI Data Analyst - Create visualizations and dashboards from scratch
The Most Addictive Python and SQL Courses
Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
This 22-minute tutorial explores JavaScript immutability with practical React examples. Learn what mutations are, why they cause unexpected bugs, and how immutability creates more reliable applications. Discover essential techniques for properly cloning and updating objects/arrays, understand how React relies on immutability for change detection, and build a simple setState function in pure JavaScript. The video covers both benefits and performance trade-offs of immutable programming patterns, with real-world examples of shared reference problems and draft editing bugs. Follow along with demonstrations of spread operators versus structuredClone, and gain insights into when immutability is worth implementing in your projects. Part of the "20 Things JavaScript Developers Should Know But Probably Don't" series by Sina Jazayeri from ColorCode.io.
Syllabus
0:00 Intro Animation
3:13 Introduction
4:00 What is a Mutation? Examples
5:03 Immutability
6:07 Examples
8:51 Theory + Common patterns
10:11 React
12:45 Benefits
15:00 Your Instagram questions
18:35 Downsides and Performance concerns
19:28 Summary
20:40 Outro
Taught by
ColorCode