This course contains 17 interactive scrims
17 lessons1 hour 20 min
ES6 classes review
State in class components
Converting to a class component
The constructor method
updating complex state
Class components Challenges 🚀
Head of Education at Scrimba. Passionate about learning 📚, helping others achieve their career goals 👩💻, tennis 🎾, woodworking 🪑, and my family 👨👩👦👦.Follow me on twitter
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!