Skip to main content
The SDK ships a React entry point, @encorekit/web-sdk/react, with an EncoreProvider that calls configure() exactly once (StrictMode-safe) and a useEncore() hook that returns the SDK instance.

Install

Configure at the root

The provider takes the same props as EncoreConfig (apiKey, logLevel, …).

Identify and present offers

Contracts: placement() · show(). Pass useCase: 'rewardUsers' on a reward placement. Without it the placement is a 'reduceChurn' one, the default, whose claim waits for redeem().

Next steps