0.5.0 • Published 7 months ago
@rdub/next-base v0.5.0
@rdub/next-base
Misc utils for Next.js <Link>
, <Head>
, <Nav>
, router
, and configs
- a: link component that uses Next.js <Link> for same-origin URLs and
<a target="_blank">
for external URLs. - basePath:
getBasePath
helper for Next.js. - config, basePath:
next/config
accessors. - head:
next/head
wrapper, populates og tags. - route-is-changing:
useRouteIsChanging
hook, useful for invalidating queries / displaying loading spinners duringrouter.push
transitions. - use-root-url:
useRootUrl
hook, for constructing absolute URLs in Next.js apps.
Used by: