MCPcopy Create free account
hub / github.com/Lobos/react-ui / createLocationDescriptor

Function createLocationDescriptor

docs/lib/ReactRouter.js:1772–1782  ·  view source on GitHub ↗
(to, _ref)

Source from the content-addressed store, hash-verified

1770 }
1771
1772 function createLocationDescriptor(to, _ref) {
1773 var query = _ref.query;
1774 var hash = _ref.hash;
1775 var state = _ref.state;
1776
1777 if (query || hash || state) {
1778 return { pathname: to, query: query, hash: hash, state: state };
1779 }
1780
1781 return to;
1782 }
1783
1784 /**
1785 * A <Link> is used to create an <a> element that links to a route.

Callers 1

ReactRouter.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…