Code Review and Practices

Before you begin

Few basics.

General

FunctionName: One quick sentence of what this fucntion does.
Parameters:
<Param1> |  <Type>  | <One quick sentence on what this param does>
<Param2> |  <Type>  | <One quick sentence on what this param does>
<ParamN> |  <Type>  | <One quick sentence on what this param does>
Returns:
What does this function returns, If this function is a promise. Then say what the it returns when the promise resolves and what it returns when the promise rejects.  
ClassName: One quick sentence of what this class does.

JavaScript

React