@rdub/next-base

0.5.0 • Public • Published

@rdub/next-base

Misc utils for Next.js <Link>, <Head>, <Nav>, router, and configs

@rdub/next-base NPM version

  • 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 during router.push transitions.
  • use-root-url: useRootUrl hook, for constructing absolute URLs in Next.js apps.

Used by:

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.5.01latest

Version History

VersionDownloads (Last 7 Days)Published
0.5.01
0.4.03
0.3.03
0.2.10
0.2.00
0.1.02
0.0.10

Package Sidebar

Install

npm i @rdub/next-base

Weekly Downloads

9

Version

0.5.0

License

MIT

Unpacked Size

8.22 kB

Total Files

14

Last publish

Collaborators

  • rdub