createLocationCreates a Location object with a unique key from the given Path function createLocation(current: string | Location,to: To,state?: any,key?: string,): Readonly<Location>;§createLocation(current: string | Location, to: To, state?: any, key?: string): Readonly<Location>[src]§Parameters§current: string | Location[src]§to: To[src]§state?: any optional[src]§key?: string optional[src]§Return Type§Readonly<Location>[src]