From the course: React Foundations by Pearson

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Learning objectives

Learning objectives

Okay, welcome to lesson two. In this lesson, we're going to see how to create class-based components. So first of all, I'll explain what a component is, and that'll be a good start. And then I'll go through the details of how to basically define a class that creates component. This will be a theme, we'll continue this into the next lesson as well, in lesson three, coming up later. We'll see how to create functional components, which is another way to do it. And at that point I'll compare and contrast the class-based approach and the functional approach. So that's the plan anyway, this lesson, how to create class-based components.

Contents