Download wp-calypso/client/landing/stepper/hooks/use-query.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 217 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/landing/stepper/hooks/use-query.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/landing/stepper/hooks/use-query.ts
-
curl -L -o use-query.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/landing/stepper/hooks/use-query.ts
217 Bytes
| import React from 'react'; | |
| import { useLocation } from 'react-router-dom'; | |
| export function useQuery() { | |
| const { search } = useLocation(); | |
| return React.useMemo( () => new URLSearchParams( search ), [ search ] ); | |
| } | |