From the course: JavaScript Essential Training
Unlock the full course today
Join today to access over 23,200 courses taught by industry experts.
Making sense of a React component - JavaScript Tutorial
From the course: JavaScript Essential Training
Making sense of a React component
- [Instructor] At the very beginning of the course, I said for a lot of people today, their first interaction with JavaScript is through a JavaScript Framework like React or Vue and I said, if you understand the fundamentals of JavaScript itself, you'll be able to understand what is going on inside a JavaScript Framework like React even if you don't know the framework or the framework specific language. We started out by looking at this React component and now that we're at the end of the course we can revisit the same component to see what is going on so that you can see how all the things you've learned, apply to React as well. Off the top, the component imports two items, React from react and PropTypes from prop-types. You now know what this means, it means somewhere else in the project sits something called react and something called prop-types and we're just importing it into this component so that we can use…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Download courses and learn on the go
Watch courses on your mobile device without an internet connection. Download courses using your iOS or Android LinkedIn Learning app.
Contents
-
-
Objects: A practical introduction4m 53s
-
(Locked)
JavaScript objects: The code version2m 57s
-
(Locked)
Object containers2m 22s
-
(Locked)
Object properties55s
-
(Locked)
Accessing objects2m 32s
-
(Locked)
Accessing object properties5m 35s
-
(Locked)
Practice: Build a new object1m 18s
-
(Locked)
Object methods6m 29s
-
(Locked)
Practice: Build a new method56s
-
(Locked)
Classes: Object blueprints6m 35s
-
(Locked)
Object constructors2m 21s
-
(Locked)
Practice: Build a new object with a constructor1m 13s
-
(Locked)
Global objects7m 47s
-
(Locked)
Challenge intro: Create a new object type2m 5s
-
(Locked)
Solution: Create a new object type3m 16s
-
-
-
DOM: The Document Object Model4m 7s
-
(Locked)
Access elements with querySelector methods6m 6s
-
(Locked)
Access elements using older methods3m 45s
-
(Locked)
Practice: Find an element1m 29s
-
(Locked)
Modifying element classes4m 53s
-
(Locked)
Attributes4m 13s
-
(Locked)
Inline style3m 52s
-
(Locked)
Practice: Modify classes and attributes, and styles1m 36s
-
(Locked)
Add DOM elements5m 25s
-
(Locked)
Challenge intro: Create elements1m 17s
-
(Locked)
Solution: Create elements3m 35s
-
-
-
Variables: Containers for everything2m 31s
-
(Locked)
Var3m 15s
-
(Locked)
Scope3m 37s
-
(Locked)
Let4m 34s
-
(Locked)
Const2m 58s
-
(Locked)
Data types3m 7s
-
(Locked)
Assignment vs. comparison4m 35s
-
(Locked)
Math operators6m 13s
-
(Locked)
Challenge intro: Calculate sales tax1m 35s
-
(Locked)
Solution: Calculate sales tax3m 30s
-
-
-
The real-world function2m 49s
-
(Locked)
Functions and methods6m 23s
-
(Locked)
A standard function3m 53s
-
(Locked)
The arrow function4m 49s
-
(Locked)
Arrow functions and "this"4m 20s
-
(Locked)
Practice: Build a function1m 31s
-
(Locked)
Pass data to a function with parameters4m 56s
-
(Locked)
Return values from a function7m 1s
-
(Locked)
Practice: Pass values between functions2m 33s
-
(Locked)
Callbacks5m 29s
-
(Locked)
Conditional if...else statement5m 52s
-
(Locked)
Logical operators3m 31s
-
(Locked)
Conditional switch statement5m 55s
-
(Locked)
Looping through content5m 19s
-
(Locked)
Using the map() array method4m 52s
-
(Locked)
Challenge intro: Create a content factory2m 36s
-
(Locked)
Solution: Create a content factory5m 21s
-
-
-
(Locked)
DOM events explained1m 41s
-
(Locked)
Typical DOM events5m 35s
-
(Locked)
Event listeners5m 45s
-
(Locked)
Practice: Experiment with event listeners1m 32s
-
(Locked)
Advanced event listeners and "this"6m 12s
-
(Locked)
Pass arguments through event listeners4m 53s
-
(Locked)
Challenge intro: Create an event listener2m 15s
-
(Locked)
Solution: Create an event listener6m 16s
-
(Locked)