docs: function replace(pathname) {
          if (typeof routesMap === 'function') {
              return routesMap(pathname) || pathname
          }
  
          let matched = false
          return pathname
              .split('/')
              .map(chunk => {
                  // console.log(chunk);
                  if (!matched) {
                      if (routesMap[chunk]) {
                          matched = true
                      }
                      return typeof routesMap[chunk] === 'string' ? routesMap[chunk] : chunk
                  }
                  else {
                      return chunk
                  }
              })
              .join('/')
              .replace(/\/\//, '/')
      }