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.