NextJs Package
The Memberstack NextJs package is a wrapper around @memberstack/react while also containing server actions that can be use with the latest app router and still with getServerSideProps.
Getting Started
First, you'll need to install the Memberstack Nextjs package:
You have access to client side packages at @memberstack/nextjs/client
. Wrap the children routes of your app with MemberstackProvider
.
App Router
For the app router, that means in app/layout.tsx
Pages Directory
Or if you're using the pages router, inside pages/_app.tsx
You can then access all the same react components on the client
Last updated