Skip to content

useUrlSearchParams ​

browser
test coverage
Last changed: yesterday

Hook that provides reactive URLSearchParams

typescript
import { useUrlSearchParams } from '@siberiacancode/reactuse';

Usage ​

typescript
const { value, set } = useUrlSearchParams('history');

Demo ​

Api ​

Parameters

NameTypeDefaultNote
modeUrlSearchParamsMode-The URL mode
options?UseUrlSearchParamsOptions<Value>-The URL mode

Source ​

Source • Demo

Contributors ​

Avatardebabin
AvatarVLADISLAW9

Released under the MIT License.