0.0.4-beta • Published 2 years ago
bind-url-hash v0.0.4-beta
use url hash store state and provide react hook
http://example.com/#message=hello
--------------
mapping to object
{
message: 'hello'
}
bind to Component state
function MyComp() {
const [state] = useURLHash()
return (
<div>message: {state.message}</div>
)
}