c15t
/
C15T Logo
Select a framework
Frameworks
Welcome to c15t Docs
Introduction to Consent Management (c15t)
AI Tools Integrations
OSS
Contributing to c15t.com
License
Building Privacy Tools in the Open
Legal
Cookie Policy
Privacy Policy
C15T Logo
HomeFrontendIntegrationsSelf HostChangelog
xbskydiscordgithub1.4k
c15t
/
C15T Logo
Select a framework
Frameworks
Welcome to c15t Docs
Introduction to Consent Management (c15t)
AI Tools Integrations
OSS
Contributing to c15t.com
License
Building Privacy Tools in the Open
Legal
Cookie Policy
Privacy Policy
home-2Docs
chevron-rightFrameworks
chevron-rightJavascript
chevron-rightStore
chevron-rightOverview

Overview

The store is a global state that can be used to access the consent manager's state.

The store is the global state for the consent manager. It includes the user's consent preferences, location, consent banner state, and methods to update them.

Usage

import { createConsentManagerStore } from 'c15t';

const store = createConsentManagerStore(consentManager);

const hasFunctionality = store.getState().has('functionality');

Returns

Returns

Available in other SDKs

nextNext.jsreactReact
C15T Logo
Leverage native React components for seamless integration and high performance in a robust Consent Management solution that empowers your development team while prioritizing privacy and compliance.
Product
  • Documentation
  • Components
Company
  • GitHub
  • Contact
Legal
  • Privacy Policy
  • Cookie Policy
c15t