The following code:
const [ ...routes, currentRoute ] = props.routes
You can use rest operator only at the end of the destructuring expression, e.g.:
const [ currentRoute, ...routes ] = props.routes.reverse()
It is stated in ECMAScript 2015 Spec.#Destructuring Assignment, it could be hard to read but look at ArrayAssignmentPattern structure.