deno.land / x / ruck@v5.0.0 / useNavigate.mjs

useNavigate.mjs
// @ts-check
import { useContext, useDebugValue } from "react";
import NavigateContext from "./NavigateContext.mjs";
/** * A React hook to use the `navigate` function for navigating Ruck app routes. */export default function useNavigate() { const navigate = useContext(NavigateContext); useDebugValue(navigate); return navigate;}
ruck
Ruck is an open source buildless React web application framework for Deno.
GitHub Stars
74
Go to latest

Version Info

Tagged at
a month ago

External Dependencies