Use history directly from state instead of creating another object property.