Skip to main content
Module

x/aleph/framework/react/mod.ts>useRouter

The Full-stack Framework in Deno.
Very Popular
Go to Latest
function useRouter
Re-export
import { useRouter } from "https://deno.land/x/aleph@v0.3.0-beta.15/framework/react/mod.ts";

useRouter returns current RouterURL of page routing.

export default function App() {
  const { locale, pathname, routePath, params, query } = useRouter()
  return <p>{pathname}</p>
}