The history.action property is used to get the current action (PUSH, REPLACE, or POP).
Question 19 of 20 in useHistory Quiz