Download react-instantsearch/examples/hooks/components/QueryRuleContext.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 306 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-instantsearch/examples/hooks/components/QueryRuleContext.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-instantsearch/examples/hooks/components/QueryRuleContext.tsx
-
curl -L -o QueryRuleContext.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-instantsearch/examples/hooks/components/QueryRuleContext.tsx
306 Bytes
| import { useQueryRules, UseQueryRulesProps } from 'react-instantsearch-hooks'; | |
| export type QueryRuleContextProps = Partial< | |
| Pick<UseQueryRulesProps, 'trackedFilters' | 'transformRuleContexts'> | |
| >; | |
| export function QueryRuleContext(props: QueryRuleContextProps) { | |
| useQueryRules(props); | |
| return null; | |
| } | |