How do you properly initialize your component? Should you use the object’s constructor, or the onInit() method? You should always use the onInit() method if your initialization process needs anything in the SharePoint Framework API or in the current page’s context. Otherwise, you can safely use the constructor in your component.

Read the complete post on my site: SPFx Basics: Initializing components - constructor vs. onInit().