Installation
react-cookify is essentially a set of npm packages.
Install in your Project
For that install react-cookify
via npm.
npm install react-cookify
Add CookifyConsent
Now you need to add CookifyConsent
to your App.
import '../styles/globals.css'
import { CookifyConsent } from 'react-cookify'
export default function App({ Component, pageProps }) {
return (
<CookifyConsent settings={/*options*/}>
<Component {...pageProps} />
</CookifyProvider>
)
}