React Quickstart
Get started with CMP in your React application.
Installation
npm install @digiwedge/cmp-consent-react
Basic Setup
import { ConsentProvider, ConsentBanner } from '@digiwedge/cmp-consent-react';
function App() {
return (
<ConsentProvider>
<YourApp />
<ConsentBanner />
</ConsentProvider>
);
}
Configuration
See the SDK Reference for full configuration options.