Newer versions of React won't allow the use of defaultProperties when using functional components. The warning is this one: 
Newer versions of React won't allow the use of defaultProperties when using functional components. The warning is this one: