Documentation

c15t vs react-cookie-consent

react-cookie-consent is a small React package for showing a cookie consent bar. It fits the narrow requirement to show a banner and remember that the user clicked it.

c15t is the better starting point for React sites, including simple cookie notices. Consent often expands into analytics, ads, embeds, regional policy, app state, granular categories, server-visible consent, script blocking, IAB TCF, and durable records.

Why c15t wins here

  • @c15t/react includes providers, hooks, UI components, headless primitives, styling hooks, and TypeScript APIs.
  • c15t can share the same consent model with JavaScript and Next.js packages.
  • c15t supports script loading, iframe blocking, network blocking, and consent categories.
  • c15t supports hosted, self-hosted, custom backend, and offline browser modes.
  • c15t gives React apps a path to durable records, policy packs, and IAB TCF.

Comparison

Areac15treact-cookie-consent
Primary shapeReact-ready consent platformReact banner component
React APIsProviders, hooks, components, and headless primitivesBanner props and styles
Consent categoriesBuilt-in model and APIsApp-owned
Script controlLoader, iframe blocker, and network blockerApp-owned callbacks
Backend recordsHosted or self-hosted recordsCookie value for the banner decision
Growth pathFramework state, records, policy packs, and IAB TCFSimple notice UI

Bottom line

Start with c15t for React apps. It gives you the simple banner path without locking consent into a narrow component that has to be replaced when the project needs categories, scripts, backend records, or server-visible state.

See the full overview in Compare c15t.