Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

React JS Lists and Keys - Learn ReactJS

Dave Gray via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This beginner tutorial demonstrates how to render and manage a dynamic list in React using keyed JSX elements, state updates, event handlers, conditional styling, and localStorage.

Syllabus

Intro
Tutorial Setup
Changing the default state
View the new state in React Dev Tools
Displaying list items with map
Lists of elements need keys
Previewing the React list
Adding the react-icons package
Applying CSS styles to the React list
Why we don't see a checkmark when we click
Adding an onChange listener
The handleCheck function
View the new component state in React Dev Tools
Saving state to localStorage
Adding an onDoubleClick listener
Adding conditional CSS styling
Adding an onClick listener
The handleDelete function
Adding an empty list message
When will we load state from localStorage?

Taught by

Dave Gray

Reviews

Start your review of React JS Lists and Keys - Learn ReactJS

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.