package.react-utils.useQueryParams.useQueryParams.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neeto-commons-frontend Show documentation
Show all versions of neeto-commons-frontend Show documentation
A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.
import { useLocation } from "react-router-dom";
import { parseQueryParams } from "../../utils/general";
var useQueryParams = function useQueryParams(options) {
var location = useLocation();
return parseQueryParams(location.search, options);
};
export default useQueryParams;
//# sourceMappingURL=useQueryParams.js.map