Added missing var, and renamed prop componentClass to component