Const
A component that creates a link that updates the URL state.
This component uses the useStateLink hook to create a link that updates the URL state.
Props to pass to the StateLink component. See StateLinkProps.
StateLink
function MyComponent() { return <StateLink state={{foo: 'bar'}}>Link</StateLink>} Copy
function MyComponent() { return <StateLink state={{foo: 'bar'}}>Link</StateLink>}
A component that creates a link that updates the URL state.