Skip to main content

DEPRECATED

Migrate soon! Official support for statsig-react ended Jan 31, 2025.
Also refer to our migration from js-client guide, which lists other impacts on statsig-react installations.
Breaking Changes:

Initialize

In the old statsig-react package, all values needed to be given to the StatsigProvider, which internally would setup the Statsig client instance. This approach lead to issues in managing state between the Statsig client and the StatsigProvider, making it fragile and likely to break if you ever tried using the Statsig client directly. The new approach is to run everything through the Statsig client instance, and just pass that to the StatsigProvider.
View the full example on GitHub