The 'state' prop is used to pass data to the destination route, which can be accessed via location.state in the destination component.