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
Join 10560 other students
Log in to get
Subscribe to access to this course and ALL other courses. You get a 30-day money-back guarantee, no questions asked.
Subscription includes
A one-hour course to get you up to speed with class components in React
This course contains 17 interactive scrims
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 π
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.
Head of Education at Scrimba. Passionate about learning π, helping others achieve their career goals π©βπ», tennis πΎ, woodworking πͺ, and my family π¨βπ©βπ¦βπ¦.
Follow me on twitterBob 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!