React Decorators

title is a string that will be set as a document title.
It is a parameter passed in from above (‘Profile’).

WrappedComponent is the Profile component displayed above.

Hence, @setTitle(title)(wrappedComponent) is what’s happening. We want to decorate the class Profile by returning a class
of our own with specific attributes and functionalities.