packages/react-router/modules/generatePath.js
function generatePath(path = "/", params = {}) {
  return path === "/" ? path : compilePath(path)(params, { pretty: true });
}
function generatePath(path = "/", params = {}) {
  return path === "/" ? path : compilePath(path)(params, { pretty: true });
}
function generatePath ( path = "/" , params = { } ) { return path === "/" ? path : compilePath ( path ) ( params , { pretty : true } ) ; }
Public API for generating a URL pathname from a path and parameters.
Public API for generating a URL pathname from a path and parameters .