/ x / ruck@v5.0.0 / 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 is an open source buildless React web application framework for Deno.
GitHub Stars
Go to latest

Version Info

Tagged at
a month ago

External Dependencies