Hi there
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