Skip to main content
Registry commands below apply after the first npm release. Until then use the workspace examples. See release status. The quickest route is the CLI. It detects your framework, installs the right packages and writes starter files. It never edits files you already have.
The sections below show what it sets up, if you prefer to do it by hand.

Next.js App Router

CookieChimpProvider is a server component. It reads the consent cookie, so a returning visitor never sees the banner flash. See Next.js for regions, the Pages Router, connected mode and strict CSP.

React

When you server render, pass initialState so hydration matches. Read consent in components with the hooks:

Plain JavaScript

Next steps