Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Learn Class Components in React

Enroll for freeGet started!

Join 10559 other students

Log in to get

Access to all our free courses
Interactive hands-on content
100s of code challenges
Join a friendly community
Enroll for free
Subscribe to access!Subscribe to access!

Subscribe to access to this course and ALL other courses. You get a 30-day money-back guarantee, no questions asked.

Subscription includes

All courses and career paths
100s of coding challenges
Certificates of completion
Exclusive Pro members chat
The course creator Bob Ziroll

with Bob Ziroll

Course level: Intermediate

A one-hour course to get you up to speed with class components in React

You'll learn

ES6 classes review

State in class components

State

Setting state

Converting to a class component

The constructor method

updating complex state

componentdidMount()

componentdidUpdate

componentWillUnmount

Lifecycle methods

this.setState()

Class components Challenges πŸš€

man

Prerequisites

Before taking this course, you should have a basic understanding of HTML, CSS, JavaScript and React. Here’s our suggested resource to get you up to speed.

Meet your teacher

The course creator

Bob Ziroll

Head of Education at Scrimba. Passionate about learning πŸ“š, helping others achieve their career goals πŸ‘©β€πŸ’», tennis 🎾, woodworking πŸͺ‘, and my family πŸ‘¨β€πŸ‘©β€πŸ‘¦β€πŸ‘¦.

Follow me on twitter

Why this course rocks

Bob Ziroll is back with a one-hour whistle-stop tour of class components in React.

Why learn class components?

Although modern React tends to use functional components, knowledge of class components remains a useful skill to have in your toolbox. You might find yourself dealing with legacy code, or a colleague who prefers them. The difference between functional and class components might come up in an interview - who knows!

In this free, one-hour course, Scrimba Head of Education takes you through the essential basics of class components with a collection of interactive challenges designed to get you coding as much as possible. This approach leaves you with rock-solid knowledge which really sticks.

In the course, we’ll look at what class components are, state in classes components, the constructor method in class components, updating complex state, lifecycle methods, and more!