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.