Quickstart

📘

Find us on GitHub!

Find our React library and a more comprehensive documentation on github

If you've manually added the Confirmic snippet into your base page, you should remove it and use the <ConfirmicProvider /> instead.

import { ConsentGate, ConfirmicProvider } from '@confirmic/react'

const MyApp = () => (
  <ConfirmicProvider projectId="my-project-id">
    <>
      <ConsentGate micropolicy="my-policy">
        <MaybeBlockedComponent />
      </ConsentGate>
      <OtherComponent>
    </>
  </ConfirmicProvider>
)

Did this page help you?