JSPM

next-toolkit

1.0.0-alpha.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q11847F
  • License MIT

HOCs and Utilities for zeit/next.js caching and lazy loading

Package Exports

  • next-toolkit

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (next-toolkit) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Toolkit for Next.js

HOCs and Utilities for zeit/next.js caching and lazy loading

Available HOCS

  • Edge Side Include
  • Edge with Loader (on the client side)
  • Edge
  • Page with Loader (on the client side)
  • ApiConnect utility

How to use

Install:

npm install nextjs-toolkit --save
  • Create components outside /pages
  • Export wrapped components depending on your desires
  • import wrapped components in /pages and export them as default

see examples.

Contacts

nextjs community chat on spectrum