Defining class properties outside of the class definition?

Hi there :smiley_cat:

I’m taking the React course, and on this lesson I came across this:

Basically they’re just giving the Example class a defaultProps property, but…outside of the class definition?
Could we achieve the same thing by defining defaultProps inside of the class definition? Why doing it outside of it?
I’m kinda lost.

Any feedback would be appreciated :pleading_face:

1 Like

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.