Location
The term "location" in React Router refers to the Location
interface from the history library.
Note:
The
history
package is React Router's only dependency and many of the core types in React Router come directly from that library includingLocation
,To
,Path
, and others. You can read more about the history library in its documentation.