Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript React Basics (retired) Stateful Components Creating a Component Class

Stu Bamforth
Stu Bamforth
3,393 Points

SFC first?

SFC first?

So it is recommended that we always start with SFC first and then refactor to Component classes? Why wouldn't we start with Component classes to begin with?

Its much easier to understand this from this angle. In React from Codecademy which took your approach and although informative and in depth, it took a while to understand the beauty of React until I saw this course.

Check out Codecademy's two courses on React if you are interested. Its good to take both courses since each aids the other.

1 Answer

Its much easier to understand this from this angle. In React from Codecademy which took your approach and although informative and in depth, it took a while to understand the beauty of React until I saw this course.

Check out Codecademy's two courses on React if you are interested. Its good to take both courses since each aids the other.