@rdub/next-base
v0.4.0
Published
Misc utils for Next.js: <Link>, <Head>, <Nav>, config helpers
Downloads
176
Readme
@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.
Used by: