Changed the require type when creating component.